api.js
2.18 KB
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
// const api = wx.$request
import api from '~/utils/request/request.js'
// const api = wx.$request
module.exports = {
/**退出*/
logout() {
return api.post('dj.api.smartcarlife.logout')
},
/** 获取工位设置信息 */
getWorkSetting() {
return api.post('dj.api.smartcarlife.inviteStationSet.get')
},
/**更新工位设置 */
setWorkSetting(data) {
return api.post('dj.api.smartcarlife.inviteStationSet.update', data)
},
// /** 获取我的种草总数 */
// GETGRASSTOTAL(data) {
// return api.post('dj.api.smartcarlife.orderShareRecord.own.count', data)
// },
// /** 分页查询我的种草 */
// GETGRASSLIST(data) {
// return api.post('dj.api.smartcarlife.orderShareRecord.own.page', data)
// },
// 分页查询技师列表
getTechnicianList(data) {
return api.post('dj.api.smartcarlife.staff.findStaffByPage', data)
},
// 新增技师信息
addTechnician(data) {
return api.post('dj.api.smartcarlife.technicianConfig.add', data)
},
// 修改技师信息
updateTechnician(data) {
return api.post('dj.api.smartcarlife.technicianConfig.update', data)
},
// 删除技师
deleteTechnician(data) {
return api.post('dj.api.smartcarlife.technicianConfig.delete', data)
},
/** 分页查询我的种草 */
GETGRASSLIST(data) {
return api.post('dj.api.smartcarlife.orderShareRecord.own.page', data)
},
/** 获取商户配置 */
getMerchantConfiguration(data) {
return api.post('dj.api.scenemerchantref.getMerchantConfiguration', data)
},
/** 配置修改 */
updateSignatureConfiguration(data) {
return api.post('dj.api.scenemerchantref.updateSignatureConfiguration', data)
},
/** 获取领劵预约设置 */
getReservationConfig(data) {
return api.post('dj.api.smartcarlife.reservation.phone.number.config.get', data)
},
/** 更新领劵预约设置 */
updateReservationConfig(data) {
return api.post('dj.api.smartcarlife.reservation.phone.number.config.update', data)
}
}