import { http } from '@/uni_modules/uview-plus'

// 获取号牌种类
export const getCarNumApi = (data) => http.get(`/system/licenseplat/type/getList`, {params: data, custom: {auth: true}})

// 获取车辆类型
export const getCarTypeApi = (data) => http.get(`/system/vehicle/type/getList`, {params: data, custom: {auth: true}})

// 获取车辆使用性质
export const getCarNatureApi = (data) => http.get(`/system/vehicle/nature/getList`, {params: data, custom: {auth: true}})

// 获取中文品牌
export const getCarBrandApi = (data) => http.get(`/system/vehicle/brand/getList`, {params: data, custom: {auth: true}})

// 获取保险需求
export const getNeedApi = (data) => http.get(`/system/requirements/getList`, {params: data, custom: {auth: true}})

// 获取车辆型号
export const getCarModelApi = (data) => http.get(`/system/vehicle/model/getList`, {params: data, custom: {auth: true}})

// 获取承保公司
export const getListDeptApi = (data) => http.get(`/system/dept/list`, {params: data, custom: {auth: true}})

// 根据ID获取车辆信息
export const getCarDetail = (id) => http.get(`registration/${id}`, {custom: {auth: true}})