You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
import request from '@/utils/request.js'
// 登录接口( pad.auth -> /login) : 不携带 token, 不调用 /api/sign
export const userLogin = ( loginData ) => {
return request ( {
tag : 'pad.auth' ,
path : '/login' ,
method : 'POST' ,
body : loginData ,
withToken : false ,
skipSign : true
} )
}
// 今日进厅数据(按大厅相关归到 pad.hallSystem, 可根据后端最终路由调整)
export const getdailyEntry = ( params ) => {
return request ( {
tag : 'pad.hallSystem' ,
path : '/list' ,
method : 'GET' ,
query : params
} )
}
// 获取今日预约( pad.appointment -> /time-slots)
export const getAppointmentToday = ( params ) => {
return request ( {
tag : 'pad.appointment' ,
path : '/time-slots' ,
method : 'GET' ,
query : params
} )
}
// 票号管理( pad.ticket -> /list)
export const getTicket = ( params ) => {
return request ( {
tag : 'pad.ticket' ,
path : '/list' ,
method : 'GET' ,
query : params
} )
}
// 获取业务列表( pad.business -> /enabled)
export const getBizList = ( params = { } ) => {
return request ( {
tag : 'pad.business' ,
path : '/enabled' ,
method : 'GET' ,
query : params
} )
}