32 lines
1.0 KiB
TypeScript
32 lines
1.0 KiB
TypeScript
import { get, post } from '../../index'
|
|
|
|
export const getGoodsClassListApi = () => {
|
|
return get('/material-mall/maType/getEquipmentType', {})
|
|
}
|
|
export const getCompanyListApi = () => {
|
|
return get('/material-mall/dev/companyList', {})
|
|
}
|
|
export const getHotSearchListApi = () => {
|
|
return get('/material-mall/maType/getHotSearch', {})
|
|
}
|
|
export const getLeaseListApi = (data: any = {}) => {
|
|
return post('/material-mall/ma-lease/leaseList', data)
|
|
}
|
|
export const getBookCarDetailsApi = (data: any = {}) => {
|
|
return get('/material-mall/bookCar/getBookCarDetails', data)
|
|
}
|
|
export const getLeaseInfoByIdApi = (data: any = {}) => {
|
|
return get('/material-mall/ma-lease/getById', data)
|
|
}
|
|
export const getAreaApi = (areaCode: any) => {
|
|
return get(`/material-mall/maType/getArea?areaCode=${areaCode}`,)
|
|
}
|
|
// 立即接单
|
|
export const setAcceptByIdApi = (data: any = {}) => {
|
|
return post('/material-mall/ma-lease/accept', data)
|
|
}
|
|
|
|
export const apiGetCollect = (params = {}) => {
|
|
return post('/zlpt-equip/dev/userCollectList', params)
|
|
}
|