https://test.light2f.com/test/
接口返回的数据结构:
code: 0,
data: {},
message: "",
注意 每个分页查询都有固定分页参数,后续不再在每个查询条件中一一枚举
pageNo: number,
pageSize: number
注意 每个分页查询返回的数据结构中的 data 也是相同如下:
current: number,
size: number,
total: number,
records: any[],
下面是各个接口的路径、入参、返回数据的详情
user/login
userAccount: 'admin',
userPassword: '123456'
token: '...',
user: {}
添加或更新
HotelVip/insertOrUpdate
vipId?: number,
vipName: string,
vipPhone: string
data: boolean
HotelVip/delete
vipId: number,
vipName?: string,
vipPhone?: string
data: boolean
HotelVip/search
vipName?: string,
vipPhone?: string
vipId: number,
vipName: string,
vipPhone: string
createdAt: number
房间类型管理
添加或更新
HotelRoomType/insertOrUpdate
typeId?: number,
typeName: string,
typePrice: number,
typeArea: number,
typeUserCount: number
data: boolean
HotelRoomType/delete
typeId: number,
typeName: string,
typePrice: number,
typeArea: number,
typeUserCount: number
data: boolean
HotelRoomType/search
typeName?: string,
typeId: number,
typeName: string,
typePrice: number,
typeArea: number,
typeUserCount: number,
createdAt: number
添加或更新
HotelRoom/insertOrUpdate
roomId?: number,
roomNo: string,
typeId: number,
data: boolean
HotelRoom/delete
roomId: number,
data: boolean
HotelRoom/search
roomNo?: string,
typeId?: number
roomId: number,
roomNo: string,
roomStatus: string,
createdAt: number,
typeId: number,
typeName: string,
typePrice: number,
typeArea: number,
typeUserCount: number
选择房间类型的选项
调用 房间类型管理 - 查询,参数:
pageNo:1
pageSize: 9999
预约订单管理
添加或更新
HotelPrebook/insertOrUpdate
prebookId?: number,
vipId: number,
typeId: number,
prebookStartedAt: date,
prebookEndedAt: date
data: boolean
HotelPrebook/delete
prebookId: number,
vipId: number,
typeId: number,
prebookStartedAt: date,
prebookEndedAt: date
data: boolean
HotelPrebook/search
vipName?: string,
vipPhone?: string,
prebookId: number,
prebookStartedAt: date,
prebookEndedAt: date,
prebookDayCount: number,
prebookPrice: number
prebookStatus: string
createdAt: number,
vipId: number,
vipName: string,
vipPhone: string,
typeId: number,
typeName: string,
typePrice: number,
typeArea: number,
typeUserCount: number
HotelPrebook/cancel
prebookId: number
data: boolean
HotelPrebook/toOrder
prebookId: number,
prebookStartedAt: date,
prebookEndedAt: date,
prebookDayCount: number,
prebookPrice: number
prebookStatus: string
createdAt: number,
vipId: number,
vipName: string,
vipPhone: string,
typeId: number,
typeName: string,
typePrice: number,
typeArea: number,
typeUserCount: number
roomId: number
data: boolean
转为订单选择房间的列表
调用 房间管理 - 查询,参数:
roomNo?: string,
typeId: number,
roomStatus: 'empty',
选择会员的选项
调用 会员管理 - 查询,参数:
pageNo:1
pageSize: 9999
选择房间类型的选项
调用 房间类型管理 - 查询,参数:
pageNo:1
pageSize: 9999
添加或更新
HotelOrder/insertOrUpdate
orderId?: number,
vipId: number,
typeId: number,
roomId: number,
orderStartedAt: date,
orderEndedAt: date
data: boolean
HotelOrder/delete
orderId: number,
vipId: number,
typeId: number,
roomId: number,
orderStartedAt: date,
orderEndedAt: date
data: boolean
HotelOrder/search
vipName?: string,
vipPhone?: string,
orderId: number,
orderStartedAt: date,
orderEndedAt: date,
orderDayCount: number,
orderPrice: number
orderStatus: string
createdAt: number,
vipId: number,
vipName: string,
vipPhone: string,
typeId: number,
typeName: string,
typePrice: number,
typeArea: number,
typeUserCount: number
roomId: number
roomNo: string
HotelOrder/checkOut
orderId: string,
data: boolean
选择会员的选项
调用 会员管理 - 查询,参数:
pageNo:1
pageSize: 9999
选择房间类型的选项
调用 房间类型管理 - 查询,参数:
pageNo:1
pageSize: 9999
选择房间的选项
调用 房间管理 - 查询,参数:
typeId: number,
orderId?: number,
pageNo:1
pageSize: 9999
前端划水师
16.8k
粉丝