MrShi
2024-11-12 5ec088f7b2c1281a1874ef6ba4e783a64acb8079
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
34
35
36
37
38
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}`)
}
 
// 根据ID查询
export function findByCompanyId (companyId) {
  return request.get(`/business/customerService/findByCompanyId?companyId=${companyId}`)
}
 
// 授权企业
export function auth (data) {
  return request.post('/business/customerService/auth', data)
}
 
// 根据ID查询
export function getById (id) {
  return request.get(`/business/customerService/${id}`)
}