9 lines
611 B
JavaScript
9 lines
611 B
JavaScript
|
|
import request from '@/utils/request'
|
||
|
|
const baseUrl = '/bid/client'
|
||
|
|
export const listClient = (params) => request({ url: baseUrl + '/list', method: 'get', params })
|
||
|
|
export const getClient = (id) => request({ url: baseUrl + '/' + id, method: 'get' })
|
||
|
|
export const addClient = (data) => request({ url: baseUrl, method: 'post', data })
|
||
|
|
export const updateClient = (data) => request({ url: baseUrl, method: 'put', data })
|
||
|
|
export const delClient = (ids) => request({ url: baseUrl + '/' + ids, method: 'delete' })
|
||
|
|
export const getClientOrders = (id) => request({ url: baseUrl + '/' + id + '/orders', method: 'get' })
|