car.js
1.5 KB
"use strict";
const uni_modules_uviewPlus_index = require("../uni_modules/uview-plus/index.js");
const getCarNumApi = (data) => uni_modules_uviewPlus_index.http.get(`/system/licenseplat/type/getList`, { params: data, custom: { auth: true } });
const getCarTypeApi = (data) => uni_modules_uviewPlus_index.http.get(`/system/vehicle/type/getList`, { params: data, custom: { auth: true } });
const getCarNatureApi = (data) => uni_modules_uviewPlus_index.http.get(`/system/vehicle/nature/getList`, { params: data, custom: { auth: true } });
const getCarBrandApi = (data) => uni_modules_uviewPlus_index.http.get(`/system/vehicle/brand/getList`, { params: data, custom: { auth: true } });
const getNeedApi = (data) => uni_modules_uviewPlus_index.http.get(`/system/requirements/getList`, { params: data, custom: { auth: true } });
const getCarModelApi = (data) => uni_modules_uviewPlus_index.http.get(`/system/vehicle/model/getList`, { params: data, custom: { auth: true } });
const getListDeptApi = (data) => uni_modules_uviewPlus_index.http.get(`/system/dept/list`, { params: data, custom: { auth: true } });
const getCarDetail = (id) => uni_modules_uviewPlus_index.http.get(`registration/${id}`, { custom: { auth: true } });
exports.getCarBrandApi = getCarBrandApi;
exports.getCarDetail = getCarDetail;
exports.getCarModelApi = getCarModelApi;
exports.getCarNatureApi = getCarNatureApi;
exports.getCarNumApi = getCarNumApi;
exports.getCarTypeApi = getCarTypeApi;
exports.getListDeptApi = getListDeptApi;
exports.getNeedApi = getNeedApi;