57 lines
1.1 KiB
JavaScript
57 lines
1.1 KiB
JavaScript
const request = require('../utils/request')
|
|
|
|
module.exports = {
|
|
list(params) {
|
|
return request({
|
|
url: '/manager/customers',
|
|
params
|
|
})
|
|
},
|
|
|
|
listForAppointment(params) {
|
|
return request({
|
|
url: '/manager/customers/appointment-options',
|
|
params
|
|
})
|
|
},
|
|
|
|
matchIdentityForAppointment(nickname, wechatId, phone) {
|
|
return request({ url: '/manager/customers/identity-matches', params: { nickname, wechatId, phone } })
|
|
},
|
|
|
|
detail(id) {
|
|
return request({
|
|
url: `/manager/customers/${id}`
|
|
})
|
|
},
|
|
|
|
matchIdentity(nickname, phone) {
|
|
return request({
|
|
url: '/manager/customers/matches',
|
|
params: { nickname, phone }
|
|
})
|
|
},
|
|
|
|
matchExactIdentity(nickname, wechatId, phone) {
|
|
return request({
|
|
url: '/manager/customers/identity-matches',
|
|
params: { nickname, wechatId, phone }
|
|
})
|
|
},
|
|
|
|
appointmentOptions(params) {
|
|
return request({
|
|
url: '/manager/customers/appointment-options',
|
|
params
|
|
})
|
|
},
|
|
|
|
create(data) {
|
|
return request({
|
|
url: '/manager/customers',
|
|
method: 'POST',
|
|
data
|
|
})
|
|
}
|
|
}
|