MrShi
2024-11-07 bf2338f5cc71890cda247d46edcffa42e21871f6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import request from '../../utils/request'
 
// 查询
export function fetchList (data) {
  return request.post('/business/customerService/page', data, {
    trim: true
  })
}
 
// 创建
export function create (data) {
  return request.post('/business/customerService/create', data)
}
 
// 修改
export function updateById (data) {
  return request.post('/business/customerService/updateById', data)
}
 
// 删除
export function deleteById (id) {
  return request.get(`/business/customerService/delete/${id}`)
}
 
// 授权企业
export function auth (data) {
  return request.post('/business/customerService/auth', data)
}
 
// 根据ID查询
export function getById (id) {
  return request.get(`/business/customerService/${id}`)
}