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 }) } }