gaoluyang
2026-05-08 f5806d04b59df7a4079119392031ab99c381e0a5
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import request from '@/utils/request'
 
// 分页查询联系人列表
export function listContact(query) {
  return request({
    url: '/customerContact/listPage',
    method: 'get',
    params: query
  })
}
 
// 根据ID查询联系人详情
export function getContactById(id) {
  return request({
    url: `/customerContact/getById/${id}`,
    method: 'get'
  })
}
 
// 新增联系人
export function addContact(data) {
  return request({
    url: '/customerContact/add',
    method: 'post',
    data: data
  })
}
 
// 修改联系人
export function updateContact(data) {
  return request({
    url: '/customerContact/update',
    method: 'put',
    data: data
  })
}
 
// 删除联系人
export function delContact(id) {
  return request({
    url: `/customerContact/delete/${id}`,
    method: 'delete'
  })
}
 
// 批量删除联系人
export function delContacts(ids) {
  return request({
    url: '/customerContact/delete',
    method: 'delete',
    data: ids
  })
}