Blame view

merchant-web-master/src/api/server.js 2 KB
3f535f30   杨鑫   '初始'
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
  import request from '@/utils/request'
  
  //* ******************** 客服模块  *********************
  // 查询客服列表
  export function getAllList(data) {
    return request({
      url: '/customerService/getAll',
      method: 'post',
      data
    })
  }
  // 添加客服
  export function AddService(data) {
    return request({
      url: '/customerService/save',
      method: 'post',
      data
    })
  }
  // 删除客服
  export function delService(data) {
    return request({
      url: '/customerService/delete',
      method: 'post',
      data
    })
  }
  
  // 编辑客服
  export function UpService(data) {
    return request({
      url: '/customerService/update',
      method: 'post',
      data
    })
  }
  
  // 获取客服下的接待员
  export function getAllReceptionist(data) {
    return request({
      url: '/customerService/getAllReceptionist',
      method: 'post',
      data
    })
  }
  
  // // 获取接待人部门分类列表
  export function getDepartmentList(data) {
    return request({
      url: '/customerService/getDepartmentList',
      method: 'post',
      data
    })
  }
  
  // // 获取接待人部门分类列表
  export function getExternalUserList(data) {
    return request({
      url: '/customerService/getExternalUserList',
      method: 'post',
      data
    })
  }
  
  // // 添加接待员
  export function saveReceptionist(data) {
    return request({
      url: '/customerService/saveReceptionist',
      method: 'post',
      data
    })
  }
  // // 添加接待员
  export function deleteReceptionist(data) {
    return request({
      url: '/customerService/deleteReceptionist',
      method: 'post',
      data
    })
  }
  
  // // 获取客服配置
  export function getConfig(data) {
    return request({
      url: '/customerService/getConfig',
      method: 'post',
      data
    })
  }
  
  // // 修改客服配置
  export function saveOrUpdateConfig(data) {
    return request({
      url: '/customerService/saveOrUpdateConfig',
      method: 'post',
      data
    })
  }
  
  // // 查询是否授权
  export function checkAuthState(data) {
    return request({
      url: '/customerService/checkAuthState',
      method: 'post',
      data
    })
  }