{"size": 1755, "ext": "js", "max_stars_repo_path": "src/api/userApi.js", "max_stars_repo_name": "alwaysacc/bzsCX", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/api/userApi.js", "max_issues_repo_name": "alwaysacc/bzsCX", "max_issues_repo_issues_event_min_datetime": "2021-01-05T08:26:19.000Z", "max_issues_repo_issues_event_max_datetime": "2021-01-05T08:26:19.000Z", "max_forks_repo_path": "src/api/userApi.js", "max_forks_repo_name": "alwaysacc/bzsCX", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 27.421875, "max_line_length": 67, "alphanum_fraction": 0.7179487179}
import http from '../utils/axios'

export const getcode = (params) => {
  return http.fetchGet('/account/info/gifCode', params)
}
// 注册 http://localhost:8082/account/info/gifCode

export const login = (params) => {
  return http.fetchPost('/login/login', params)
}
// 客户列表
export const getUserList = (params) => {
  return http.fetchPost('/carinfo/getUserList', params)
}
// 客户列表搜索
export const searchUserList = (params) => {
  return http.fetchPost('/carinfo/searchUserList', params)
}
// 客户列表详情页
export const quoteDetails = (params) => {
  return http.fetchPost('/quoteinfo/quoteDetails', params)
}
// 保存客户信息
export const saveCustomer = (params) => {
  return http.fetchPost('/customer/updateCustomer', params)
}

// 保存车辆信息
export const saveCarInfo = (params) => {
  return http.fetchPost('/carinfo/updateCarInfo', params)
}
// 保存关系人信息
export const updateInsuredInfo = (params) => {
  return http.fetchPost('/insuredinfo/updateInsuredInfo', params)
}
// 回收客户
export const recoverUser = (params) => {
  return http.fetchPost('/carinfo/recoverUser', params)
}
// 回收客户
export const getRecoverUser = (params) => {
  return http.fetchPost('/carinfo/getRecoverUser', params)
}

// 新增报价
export const checkByCarNoOrVinNo = (params) => {
  return http.fetchPost('/insuredinfo/checkByCarNoOrVinNo', params)
}
// 提交报价
export const getQuoteInfoAllParams = (params) => {
  return http.fetchPost('/quoteinfo/getQuoteInfoAllParams', params)
}
// 提交订单
export const createOrder = (params) => {
  return http.fetchPost('/quoteinfo/pay', params)
}
// 账号设置
export const queryConditions = (params) => {
  return http.fetchPost('/thirdAccount/queryConditions', params)
}
export const addOrUpdate = (params) => {
  return http.fetchPost('/thirdAccount/addOrUpdate', params)
}
