99 lines
2.3 KiB
TypeScript
99 lines
2.3 KiB
TypeScript
import request from '@/utils/http'
|
|
|
|
export class vehicleService {
|
|
// 颜色管理
|
|
static getColorList(params: Api.Common.PaginatingParams & any) {
|
|
return request.get<Api.Common.CommonListData>({
|
|
url: '/crm/color/list',
|
|
params
|
|
})
|
|
}
|
|
static colorAdd(params: any) {
|
|
return request.post<Api.Common.AddResponse>({
|
|
url: '/crm/color/store',
|
|
params
|
|
})
|
|
}
|
|
static colorDetail(params: any) {
|
|
return request.get<any>({
|
|
url: '/crm/color/show',
|
|
params
|
|
})
|
|
}
|
|
static colorEdit(params: any) {
|
|
return request.post<Api.Common.AddResponse>({
|
|
url: '/crm/color/update',
|
|
params
|
|
})
|
|
}
|
|
static colorDelete(params: any) {
|
|
return request.post<Api.Common.AddResponse>({
|
|
url: '/crm/color/destroy',
|
|
params
|
|
})
|
|
}
|
|
|
|
// 车辆列表
|
|
static getVehicleList(params: Api.Common.PaginatingParams & any) {
|
|
return request.get<Api.Common.CommonListData>({
|
|
url: '/crm/vehicle/sku/list',
|
|
params
|
|
})
|
|
}
|
|
static vehicleAdd(params: any) {
|
|
return request.post<Api.Common.AddResponse>({
|
|
url: '/crm/vehicle/sku/store',
|
|
params
|
|
})
|
|
}
|
|
static vehicleDetail(params: any) {
|
|
return request.get<any>({
|
|
url: '/crm/vehicle/sku/show',
|
|
params
|
|
})
|
|
}
|
|
static vehicleEdit(params: any) {
|
|
return request.post<Api.Common.AddResponse>({
|
|
url: '/crm/vehicle/sku/update',
|
|
params
|
|
})
|
|
}
|
|
static vehicleDelete(params: any) {
|
|
return request.post<Api.Common.AddResponse>({
|
|
url: '/crm/vehicle/sku/destroy',
|
|
params
|
|
})
|
|
}
|
|
// 改装管理
|
|
static getModificationList(params: Api.Common.PaginatingParams & any) {
|
|
return request.get<Api.Common.CommonListData>({
|
|
url: '/crm/modification/list',
|
|
params
|
|
})
|
|
}
|
|
static modificationAdd(params: any) {
|
|
return request.post<Api.Common.AddResponse>({
|
|
url: '/crm/modification/store',
|
|
params
|
|
})
|
|
}
|
|
static modificationDetail(params: any) {
|
|
return request.get<any>({
|
|
url: '/crm/modification/show',
|
|
params
|
|
})
|
|
}
|
|
static modificationEdit(params: any) {
|
|
return request.post<Api.Common.AddResponse>({
|
|
url: '/crm/modification/update',
|
|
params
|
|
})
|
|
}
|
|
static modificationDelete(params: any) {
|
|
return request.post<Api.Common.AddResponse>({
|
|
url: '/crm/modification/destroy',
|
|
params
|
|
})
|
|
}
|
|
}
|