支持店务修改客户联系方式和备注
This commit is contained in:
@@ -9,6 +9,11 @@ export interface CustomerListParams {
|
||||
hasOrder?: boolean
|
||||
}
|
||||
|
||||
export interface CustomerUpdateRequest {
|
||||
contactPhone: string
|
||||
remark: string
|
||||
}
|
||||
|
||||
export const managerCustomersApi = {
|
||||
list(params: CustomerListParams): Promise<CustomerPage> {
|
||||
return adminApi.get('/manager/customers', { params })
|
||||
@@ -18,5 +23,8 @@ export const managerCustomersApi = {
|
||||
},
|
||||
create(data: CustomerCreateRequest): Promise<IdType> {
|
||||
return adminApi.post('/manager/customers', data)
|
||||
},
|
||||
update(id: IdType, data: CustomerUpdateRequest): Promise<boolean> {
|
||||
return adminApi.put(`/manager/customers/${id}`, data)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user