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.

53 lines
1.2 KiB
JavaScript

This file contains ambiguous Unicode characters!

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