| Version | Update Time | Status | Author | Description |
|---|---|---|---|---|
0.0.1 | 2022-07-27 09:50:00 | 创建文档 | codingliang | 初始化接口文档 |
1. 指纹、IC卡管理
1.1. IC卡分页查询
Type: GET
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: IC卡分页查询
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | 管理员token | true | - |
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
roomNo | string | 房间编号 | true | - |
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
curPage | int32 | 当前页,默认1 | false | - |
pageSize | int32 | 每页大小,默认10 | false | - |
orderField | string | 排序字段,可选择值参考返回结果 | false | - |
order | string | 排序方式,可选值:asc、desc | false | - |
keyWord | string | 指纹编码/IC卡号/姓名 | false | - |
userType | string | 用户类型 | false | - |
roomNo | string | 房间编号 | false | - |
createTime | string | 创建时间 | false | - |
Request-example:
curl -X GET -H 'admin_token' -i http://192.168.161.34:8089/ihotel/condition/ic/queryInfo/nvqe59?curPage=1&createTime=2023-07-13 16:54:46&userType=bzf2d1&orderField=v55f5k&order=xwihvu&pageSize=10&keyWord=v4iizlResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": {
"waring": "You may have used non-display generics."
}
}1.2. IC卡查询-详情
Type: GET
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: IC卡查询-详情
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | 管理员token | true | - |
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id | int64 | 记录ID | false | - |
Request-example:
curl -X GET -H 'admin_token' -i http://192.168.161.34:8089/ihotel/condition/ic/queryICInfoById?id=97Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": {
"waring": "You may have used non-display generics."
}
}1.3. IC卡新增
Type: POST
Content-Type: application/json; charset=utf-8
Description: IC卡新增
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | 管理员token | true | - |
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id | int64 | 编号 | false | - |
cardNumber | string | IC卡号 | false | - |
roomNo | string | 房间编号 | false | - |
holderName | string | 持卡人姓名 | false | - |
userType | string | 用户类型 | false | - |
takeTime | string | 生效时间 | false | - |
failureTime | string | 失效时间 | false | - |
createTime | string | 创建时间 | false | - |
statu | string | 状态 0 失效 1 生效 | false | - |
lockUserId | string | 锁用户ID(调用青松接口返回的id) | false | - |
Request-example:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -H 'admin_token' -i http://192.168.161.34:8089/ihotel/condition/ic/add --data '{
"id": 501,
"cardNumber": "6i0mr0",
"roomNo": "q4ao2g",
"holderName": "伟泽.宋",
"userType": "0ei0zt",
"takeTime": "2023-07-13 16:54:46",
"failureTime": "2023-07-13 16:54:46",
"createTime": "2023-07-13 16:54:46",
"statu": "bfa06a",
"lockUserId": "8"
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": {
"waring": "You may have used non-display generics."
}
}1.4. IC卡修改
Type: POST
Content-Type: application/json; charset=utf-8
Description: IC卡修改
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | 管理员token | true | - |
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id | int64 | 编号 | false | - |
cardNumber | string | IC卡号 | false | - |
roomNo | string | 房间编号 | false | - |
holderName | string | 持卡人姓名 | false | - |
userType | string | 用户类型 | false | - |
takeTime | string | 生效时间 | false | - |
failureTime | string | 失效时间 | false | - |
createTime | string | 创建时间 | false | - |
statu | string | 状态 0 失效 1 生效 | false | - |
lockUserId | string | 锁用户ID(调用青松接口返回的id) | false | - |
Request-example:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -H 'admin_token' -i http://192.168.161.34:8089/ihotel/condition/ic/update --data '{
"id": 892,
"cardNumber": "i6vbos",
"roomNo": "82xddj",
"holderName": "伟泽.宋",
"userType": "bladvk",
"takeTime": "2023-07-13 16:54:46",
"failureTime": "2023-07-13 16:54:46",
"createTime": "2023-07-13 16:54:46",
"statu": "hvvjr0",
"lockUserId": "8"
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": {
"waring": "You may have used non-display generics."
}
}1.5. IC卡解绑
Type: GET
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: IC卡解绑
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | 管理员token | true | - |
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
statu | string | 状态 0 已解绑 1 未解绑 | false | - |
id | int64 | No comments found. | false | - |
Request-example:
curl -X GET -H 'admin_token' -i http://192.168.161.34:8089/ihotel/condition/ic/unbundIC?statu=ms7787&id=709Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": {
"waring": "You may have used non-display generics."
}
}1.6. IC卡导出详情
Type: GET
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: IC卡导出详情
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
keyWord | string | 指纹编码/IC卡号/姓名 | false | - |
userType | string | 用户类型 | false | - |
roomNo | string | 房间编号 | false | - |
createTime | string | 创建时间 | false | - |
Request-example:
curl -X GET -i http://192.168.161.34:8089/ihotel/condition/downLoadICInfo?userType=lfy0sy&createTime=2023-07-13 16:54:46&roomNo=1k9upm&keyWord=us1ydyResponse-example:
Doesn't return a value.1.7. 指纹分页查询
Type: GET
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 指纹分页查询
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | 管理员token | true | - |
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
roomNo | string | 房间编号 | true | - |
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
curPage | int32 | 当前页,默认1 | false | - |
pageSize | int32 | 每页大小,默认10 | false | - |
orderField | string | 排序字段,可选择值参考返回结果 | false | - |
order | string | 排序方式,可选值:asc、desc | false | - |
keyWord | string | 指纹编码/IC卡号/姓名 | false | - |
userType | string | 用户类型 | false | - |
roomNo | string | 房间编号 | false | - |
createTime | string | 创建时间 | false | - |
Request-example:
curl -X GET -H 'admin_token' -i http://192.168.161.34:8089/ihotel/condition/fingerprint/queryInfo/mf6ea5?keyWord=sav2jy&createTime=2023-07-13 16:54:46&curPage=1&order=jl1jbx&pageSize=10&orderField=leqrek&userType=7qvlipResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": {
"waring": "You may have used non-display generics."
}
}1.8.
Type: GET
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: null
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | null | true | - |
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
electric | string | No comments found. | true | - |
Request-example:
curl -X GET -H 'admin_token' -i http://192.168.161.34:8089/ihotel/condition/PowerOnOff?electric=wkjtu9Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": {
"waring": "You may have used non-display generics."
}
}1.9. 指纹查询-详情
Type: GET
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 指纹查询-详情
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | 管理员token | true | - |
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id | int64 | 记录ID | false | - |
Request-example:
curl -X GET -H 'admin_token' -i http://192.168.161.34:8089/ihotel/condition/fingerprint/queryInfoById?id=620Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": {
"waring": "You may have used non-display generics."
}
}1.10. 指纹新增
Type: POST
Content-Type: application/json; charset=utf-8
Description: 指纹新增
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | 管理员token | true | - |
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id | int64 | 编号 | false | - |
fingerprintNumber | string | 指纹编码 | false | - |
roomNo | string | 房间编号 | false | - |
holderName | string | 指纹所有者 | false | - |
userType | string | 用户类型 | false | - |
takeTime | string | 生效时间 | false | - |
failureTime | string | 失效时间 | false | - |
createTime | string | 创建时间 | false | - |
statu | string | 状态 0 失效 1 生效 | false | - |
lockUserId | string | 锁用户ID(调用青松接口返回的id) | false | - |
Request-example:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -H 'admin_token' -i http://192.168.161.34:8089/ihotel/condition/fingerprint/add --data '{
"id": 108,
"fingerprintNumber": "j6ydas",
"roomNo": "h0cs8o",
"holderName": "伟泽.宋",
"userType": "z4dlpo",
"takeTime": "2023-07-13 16:54:46",
"failureTime": "2023-07-13 16:54:46",
"createTime": "2023-07-13 16:54:46",
"statu": "1mmeni",
"lockUserId": "8"
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": {
"waring": "You may have used non-display generics."
}
}1.11. 指纹修改
Type: POST
Content-Type: application/json; charset=utf-8
Description: 指纹修改
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | 管理员token | true | - |
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id | int64 | 编号 | false | - |
fingerprintNumber | string | 指纹编码 | false | - |
roomNo | string | 房间编号 | false | - |
holderName | string | 指纹所有者 | false | - |
userType | string | 用户类型 | false | - |
takeTime | string | 生效时间 | false | - |
failureTime | string | 失效时间 | false | - |
createTime | string | 创建时间 | false | - |
statu | string | 状态 0 失效 1 生效 | false | - |
lockUserId | string | 锁用户ID(调用青松接口返回的id) | false | - |
Request-example:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -H 'admin_token' -i http://192.168.161.34:8089/ihotel/condition/fingerprint/update --data '{
"id": 704,
"fingerprintNumber": "j6hbcp",
"roomNo": "0wwia9",
"holderName": "伟泽.宋",
"userType": "jys7ed",
"takeTime": "2023-07-13 16:54:46",
"failureTime": "2023-07-13 16:54:46",
"createTime": "2023-07-13 16:54:46",
"statu": "s5f0s7",
"lockUserId": "8"
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": {
"waring": "You may have used non-display generics."
}
}1.12. 指纹解绑
Type: GET
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 指纹解绑
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | 管理员token | true | - |
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
statu | string | 状态 0 已解绑 1 未解绑 | false | - |
id | int64 | 记录ID | false | - |
Request-example:
curl -X GET -H 'admin_token' -i http://192.168.161.34:8089/ihotel/condition/fingerprint/unbundFingerprint?statu=3n77q9&id=74Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": {
"waring": "You may have used non-display generics."
}
}1.13. 指纹导出详情
Type: GET
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 指纹导出详情
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
keyWord | string | 指纹编码/IC卡号/姓名 | false | - |
userType | string | 用户类型 | false | - |
roomNo | string | 房间编号 | false | - |
createTime | string | 创建时间 | false | - |
Request-example:
curl -X GET -i http://192.168.161.34:8089/ihotel/condition/downLoadFingerprintInfo?createTime=2023-07-13 16:54:46&keyWord=fegu9a&userType=e9ft6m&roomNo=mcnq6tResponse-example:
Doesn't return a value.2. 酒店管理员
2.1. 管理员登录
Type: POST
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 注意:密码使用提供的公钥进行RSA加密后传输
公钥:MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDMOcPB06u5yKyQsPjfVWiWgbEIrd14kiXNNihciaVKb6HnkQvq7zpQuZ80WEX94spnUMI3iOAl/GmIvHrpGwcbB4hJbznm+PajiwnUSPuCCXA68YJF640cJKb/8KeM7WVz69OFkIEPHhVxOy4FFF5QWe/kt6zOZ19HmE+ak+5x/QIDAQAB
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
username | string | 用户名 | true | - |
password | string | 密码 | true | - |
Request-example:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -i http://192.168.161.34:8089/ihotel/hotelAdmin/login --data '{
"username": "伟泽.宋",
"password": "f8wqfb"
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─userName | string | 用户姓名 | - |
└─userType | string | 用户类别 1管理员、2普通用户 | - |
└─userIdentity | string | 用户身份 只有userType为2时该字段才有值 0其他、1学生、4教职工、5校友 | - |
└─telPhone | string | 手机号码 | - |
└─headImage | string | 头像 | - |
└─token | string | 用户token | - |
└─tokenTtl | int64 | token过期时间 | - |
└─authority | string | 权限数组 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": {
"userName": "伟泽.宋",
"userType": "ialkfn",
"userIdentity": "mr8bn4",
"telPhone": "14560980108",
"headImage": "aauqbj",
"token": "fvenqc",
"tokenTtl": 864,
"authority": "dh7u3x"
}
}2.2. 管理员列表
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 管理员列表
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | 管理员token | true | - |
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
keyword | string | 关键字搜索,支持手机号和姓名搜索 | false | - |
curPage | int32 | 当前页,默认1 | false | - |
pageSize | int32 | 每页大小,默认10 | false | - |
orderField | string | 排序字段,可选择值参考返回结果 | false | - |
order | string | 排序方式,可选值:asc、desc | false | - |
telPhone | string | No comments found. | false | - |
userType | string | No comments found. | false | - |
Request-example:
curl -X GET -H 'admin_token' -i http://192.168.161.34:8089/ihotel/hotelAdmin/list?telPhone=14560980108&keyword=j48001&orderField=bns44w&curPage=1&pageSize=10&userType=9n0y48&order=9ww4ilResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─totalCount | int32 | 总记录数 | - |
└─pageSize | int32 | 每页记录数 | - |
└─totalPage | int32 | 总页数 | - |
└─currPage | int32 | 当前页数 | - |
└─list | array | 列表数据 | - |
└─id | int64 | id | - |
└─phone | string | 手机号码 登录账号 | - |
└─username | string | 员工姓名 | - |
└─adminType | string | 管理员类别 1超级管理员、2普通管理员 | - |
└─password | string | 密码 登录密码,新增时不能为空,使用RSA加密后传输 | - |
└─statu | string | 状态 0冻结、1正常 | - |
└─authority | string | 权限字符串 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": {
"totalCount": 425,
"pageSize": 10,
"totalPage": 1,
"currPage": 1,
"list": [
{
"id": 368,
"phone": "14560980108",
"username": "伟泽.宋",
"adminType": "x6tcq4",
"password": "ayxnkk",
"statu": "k0tjyp",
"authority": "7w8kk3"
}
]
}
}2.3. 新增管理员
Type: POST
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 新增管理员
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | 管理员token | true | - |
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id | int64 | id | false | - |
phone | string | 手机号码 登录账号 | true | - |
username | string | 员工姓名 | true | - |
adminType | string | 管理员类别 1超级管理员、2普通管理员 | true | - |
password | string | 密码 登录密码,新增时不能为空,使用RSA加密后传输 | false | - |
statu | string | 状态 0冻结、1正常 | true | - |
authority | array | 权限字符数组 | false | - |
Request-example:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -H 'admin_token' -i http://192.168.161.34:8089/ihotel/hotelAdmin/add --data '{
"id": 236,
"phone": "14560980108",
"username": "伟泽.宋",
"adminType": "wdmun7",
"password": "iihaz3",
"statu": "h066ki",
"authority": [
"d2i8f3"
]
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": "hpprv4"
}2.4. 修改管理员
Type: PUT
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 修改管理员
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | null | true | - |
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id | int64 | id | false | - |
phone | string | 手机号码 登录账号 | true | - |
username | string | 员工姓名 | true | - |
adminType | string | 管理员类别 1超级管理员、2普通管理员 | true | - |
password | string | 密码 登录密码,新增时不能为空,使用RSA加密后传输 | false | - |
statu | string | 状态 0冻结、1正常 | true | - |
authority | array | 权限字符数组 | false | - |
Request-example:
curl -X PUT -H 'Content-Type: application/json; charset=utf-8' -H 'admin_token' -i http://192.168.161.34:8089/ihotel/hotelAdmin/update --data '{
"id": 229,
"phone": "14560980108",
"username": "伟泽.宋",
"adminType": "2uwnl2",
"password": "n28zr2",
"statu": "tnb4lq",
"authority": [
"csbddv"
]
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": "heyd6k"
}2.5. 修改密码
Type: PUT
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 超级管理员可以修改所有管理员的密码,普通管理员只能修改本人密码。超级管理员修改他人密码时必须要传adminId。
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | No comments found. | true | - |
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
adminId | int64 | 管理员id,超级管理员修改普通管理员密码时不能为空 | false | - |
password | string | 密码,密码使用公钥加密后传输 | true | - |
Request-example:
curl -X PUT -H 'Content-Type: application/json; charset=utf-8' -H 'admin_token' -i http://192.168.161.34:8089/ihotel/hotelAdmin/updatePassword --data '{
"adminId": 441,
"password": "mg461a"
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": "i27f4q"
}2.6. 删除管理员
Type: DELETE
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 删除管理员
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | null | true | - |
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
ids | array | No comments found.,[array of int64] | false |
Request-example:
curl -X DELETE -H 'Content-Type: application/json; charset=utf-8' -H 'admin_token' -i http://192.168.161.34:8089/ihotel/hotelAdmin/delete --data '[
551,
839
]'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": "meeb6w"
}3. 酒店订单
3.1. 获取请求令牌
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 获取请求令牌
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
user_token | string | 用户token | true | - |
Request-example:
curl -X GET -H 'user_token' -i http://192.168.161.34:8089/ihotel/hotelOrder/user/submit/tokenResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─submitToken | string | 提交token | - |
└─expire | int64 | 过期时间 单位:ms | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": {
"submitToken": "j43ebf",
"expire": 246
}
}3.2. 确认订单
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 确认订单
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
startTime | string | 入住时间 yyyy-MM-dd | true | - |
endTime | string | 离店时间 yyyy-MM-dd HH | true | - |
roomTypeId | int64 | 房型id | true | - |
Request-example:
curl -X GET -i http://192.168.161.34:8089/ihotel/hotelOrder/user/order/confirm?startTime=2023-07-13&endTime=2023-07-13&roomTypeId=15Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─startTime | string | 入住时间 yyyy-MM-dd HH:mm:ss | - |
└─endTime | string | 离店时间 yyyy-MM-dd HH:mm:ss | - |
└─nums | int32 | 入住天数 | - |
└─roomTypeId | int64 | 房间类型id | - |
└─roomTypeName | string | 房间类型名称 | - |
└─freeNum | int32 | 可预定房间数量,为0表示不可定 | - |
└─discountPrice | number | 优惠价格 单位:元 | - |
└─deposit | number | 押金 单位:元 | - |
└─totalAmount | number | 需付总金额 (优惠价格+押金)*nums | - |
└─priceOfWater | number | 水费 单位:元/吨 | - |
└─priceOfElectric | number | 电费 单位:元/度 | - |
└─freeQuotaOfWater | number | 水免费额度 单位:吨 | - |
└─freeQuotaOfElectric | number | 电免费额度 单位:度 | - |
└─freeTotal | number | 水电免费额度总金额 单位:元 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": {
"startTime": "2023-07-13 16:54:47",
"endTime": "2023-07-13 16:54:47",
"nums": 250,
"roomTypeId": 80,
"roomTypeName": "伟泽.宋",
"freeNum": 39,
"discountPrice": 28,
"deposit": 356,
"totalAmount": 357,
"priceOfWater": 85,
"priceOfElectric": 807,
"freeQuotaOfWater": 634,
"freeQuotaOfElectric": 515,
"freeTotal": 704
}
}3.3. 提交订单
Type: POST
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 提交订单
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
user_token | string | 用户卡号 | true | - |
request_token | string | 请求令牌,从【获取请求令牌】接口获取 | true | - |
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
enableStartTime | string | 入住时间 yyyy-MM-dd HH:mm:ss | true | - |
enableEndTime | string | 离店时间 yyyy-MM-dd HH:mm:ss | true | - |
roomTypeId | int64 | 房间类型id | true | - |
payAmount | number | 需付总金额,用于订单验价 | true | - |
userName | string | 联系人姓名 | true | - |
userPhone | string | 联系人电话 | true | - |
mayIntoTime | string | 预计到店时间 yyyy-MM-dd HH:mm:ss | true | - |
remark | string | 备注说明 | false | - |
Request-example:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -H 'user_token' -H 'request_token' -i http://192.168.161.34:8089/ihotel/hotelOrder/user/order/submit --data '{
"enableStartTime": "2023-07-13 16:54:47",
"enableEndTime": "2023-07-13 16:54:47",
"roomTypeId": 728,
"payAmount": 975,
"userName": "伟泽.宋",
"userPhone": "14560980108",
"mayIntoTime": "2023-07-13 16:54:47",
"remark": "jjphmq"
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─orderId | int64 | 订单id | - |
└─payAmount | number | 实际支付金额,如果实际支付金额为0,则不需要调用支付接口,直接跳转到支付成功页面 | - |
└─payUrl | string | 支付地址 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": {
"orderId": 15,
"payAmount": 760,
"payUrl": "www.xn---xn--ipw-gz6oe293c.net"
}
}3.4. 订单列表【用户端】
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 订单列表【用户端】
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
user_token | string | 用户token | true | - |
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
curPage | int32 | 当前页,默认1 | false | - |
pageSize | int32 | 每页大小,默认10 | false | - |
orderField | string | 排序字段,可选择值参考返回结果 | false | - |
order | string | 排序方式,可选值:asc、desc | false | - |
orderId | int64 | 订单id | false | - |
keyWord | string | 关键字(订单号、房间号) | false | - |
userFlag | string | 订单用户标识 | false | - |
userName | string | 用户姓名 | false | - |
userPhone | string | 用户手机号码 | false | - |
roomNo | string | 房间编号 | false | - |
roomTypeId | int64 | 房型id | false | - |
statu | string | 状态 0已取消、1待支付、2待入住、3已入住、4-1退款中、4-2欠款待支付、5已完成 | false | - |
enableStartTime | string | 最早入住时间 最早可入住时间 yyyy-MM-dd HH:mm:ss | false | - |
enableEndTime | string | 最晚离店时间 最晚要离店时间 yyyy-MM-dd HH:mm:ss | false | - |
payTime1 | string | 支付时间开始 yyyy-MM-dd HH:mm:ss | false | - |
payTime2 | string | 支付时间结束 yyyy-MM-dd HH:mm:ss | false | - |
createTime1 | string | 创建时间开始 yyyy-MM-dd HH:mm:ss | false | - |
createTime2 | string | 创建时间结束 yyyy-MM-dd HH:mm:ss | false | - |
deleteFlag | string | 删除标识 1正常,0删除 | false | - |
Request-example:
curl -X GET -H 'user_token' -i http://192.168.161.34:8089/ihotel/hotelOrder/user/order/page?keyWord=h4bx80&createTime2=2023-07-13 16:54:47&deleteFlag=iinwb2&orderField=6ntgod&pageSize=10&roomNo=dc89gp&enableStartTime=2023-07-13 16:54:47&roomTypeId=9&userFlag=j3dmux&enableEndTime=2023-07-13 16:54:47&curPage=1&orderId=177&userPhone=14560980108&order=i8eg8c&statu=y4t1ii&createTime1=2023-07-13 16:54:47&userName=伟泽.宋&payTime1=2023-07-13 16:54:47&payTime2=2023-07-13 16:54:47Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─totalCount | int32 | 总记录数 | - |
└─pageSize | int32 | 每页记录数 | - |
└─totalPage | int32 | 总页数 | - |
└─currPage | int32 | 当前页数 | - |
└─list | array | 列表数据 | - |
└─id | int64 | 订单id | - |
└─orderNo | string | 订单编号 | - |
└─payAmount | number | 实际支付金额 | - |
└─createTime | string | 下单时间 | - |
└─enableStartTime | string | 入住时间 | - |
└─enableEndTime | string | 离店时间 | - |
└─orderStatu | string | 订单状态 0已取消、1待支付、2待入住、3已入住、4待结账、5已完成 | - |
└─bizStatu | string | 业务状态 0待处理、1发起退款、2发起结账支付、3退款或结账支付完成,订单状态为4的时候,显示该状态 | - |
└─roomTypeId | int64 | 房型id | - |
└─roomTypeName | string | 房型名称 | - |
└─roomTypeMasterImg | string | 房型主图 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": {
"totalCount": 341,
"pageSize": 10,
"totalPage": 1,
"currPage": 1,
"list": [
{
"id": 965,
"orderNo": "mpa6mb",
"payAmount": 53,
"createTime": "2023-07-13 16:54:47",
"enableStartTime": "2023-07-13 16:54:47",
"enableEndTime": "2023-07-13 16:54:47",
"orderStatu": "k1uesa",
"bizStatu": "syjz2s",
"roomTypeId": 406,
"roomTypeName": "伟泽.宋",
"roomTypeMasterImg": "ep20hp"
}
]
}
}3.5. 订单列表【管理端】
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 订单列表【管理端】
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | null | true | - |
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
curPage | int32 | 当前页,默认1 | false | - |
pageSize | int32 | 每页大小,默认10 | false | - |
orderField | string | 排序字段,可选择值参考返回结果 | false | - |
order | string | 排序方式,可选值:asc、desc | false | - |
orderId | int64 | 订单id | false | - |
keyWord | string | 关键字(订单号、房间号) | false | - |
userFlag | string | 订单用户标识 | false | - |
userName | string | 用户姓名 | false | - |
userPhone | string | 用户手机号码 | false | - |
roomNo | string | 房间编号 | false | - |
roomTypeId | int64 | 房型id | false | - |
statu | string | 状态 0已取消、1待支付、2待入住、3已入住、4-1退款中、4-2欠款待支付、5已完成 | false | - |
enableStartTime | string | 最早入住时间 最早可入住时间 yyyy-MM-dd HH:mm:ss | false | - |
enableEndTime | string | 最晚离店时间 最晚要离店时间 yyyy-MM-dd HH:mm:ss | false | - |
payTime1 | string | 支付时间开始 yyyy-MM-dd HH:mm:ss | false | - |
payTime2 | string | 支付时间结束 yyyy-MM-dd HH:mm:ss | false | - |
createTime1 | string | 创建时间开始 yyyy-MM-dd HH:mm:ss | false | - |
createTime2 | string | 创建时间结束 yyyy-MM-dd HH:mm:ss | false | - |
deleteFlag | string | 删除标识 1正常,0删除 | false | - |
Request-example:
curl -X GET -H 'admin_token' -i http://192.168.161.34:8089/ihotel/hotelOrder/admin/order/page?userFlag=jfrhh1&curPage=1&orderField=35muh6&orderId=184&payTime1=2023-07-13 16:54:47&userPhone=14560980108&payTime2=2023-07-13 16:54:47&deleteFlag=6jb8jh&pageSize=10&statu=wlzbn5&roomNo=8x5yg2&enableStartTime=2023-07-13 16:54:47&createTime2=2023-07-13 16:54:47&order=rft5gg&keyWord=nz6vuz&roomTypeId=979&enableEndTime=2023-07-13 16:54:47&userName=伟泽.宋&createTime1=2023-07-13 16:54:47Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─totalCount | int32 | 总记录数 | - |
└─pageSize | int32 | 每页记录数 | - |
└─totalPage | int32 | 总页数 | - |
└─currPage | int32 | 当前页数 | - |
└─list | array | 列表数据 | - |
└─order | object | 订单信息 | - |
└─id | int64 | id | - |
└─orderNo | string | 订单编号 | - |
└─userFlag | string | 订单用户标识 | - |
└─userName | string | 用户姓名 | - |
└─userPhone | string | 用户手机号码 | - |
└─roomId | int64 | 房间id | - |
└─roomNo | string | 房间编号 | - |
└─roomTypeId | int64 | 房型id | - |
└─roomTypeName | string | 房型名称 | - |
└─roomTypeMasterImg | string | 房型主图 | - |
└─payAmount | number | 实际支付金额 | - |
└─payMethod | string | 支付方式 (保留字段,页面暂不显示) | - |
└─createTime | string | 下单时间 | - |
└─payTime | string | 支付时间 | - |
└─orderStatu | string | 订单状态 0已取消、1待支付、2待入住、3已入住、4待结账、5已完成 | - |
└─bizStatu | string | 业务状态 0待处理、1发起退款、2发起结账支付、3退款或结账支付完成 | - |
└─enableStartTime | string | 最早入住时间 最早可入住时间 | - |
└─enableEndTime | string | 最晚离店时间 最晚要离店时间 | - |
└─realStartTime | string | 实际入住时间 | - |
└─realEndTime | string | 实际离店时间 | - |
└─mayIntoTime | string | 预计到店时间 预计到店时间 | - |
└─remark | string | 备注 | - |
└─deleteFlag | string | 删除标识 0删除、1正常 | - |
└─orderBill | object | 订单账单信息 | - |
└─id | int64 | id | - |
└─hotelOrderId | int64 | 订单id | - |
└─roomId | int64 | 房间id | - |
└─startOfWater | string | 水起码 单位:吨 | - |
└─endOfWater | string | 水止码 单位:吨 | - |
└─startOfElectric | string | 电起码 单位:度 | - |
└─endOfElectric | string | 电止码 单位:度 | - |
└─priceOfWater | string | 水单价 单位:元/吨 | - |
└─priceOfElectric | string | 电单价 单位:元/度 | - |
└─totalFree | number | 总费用 单位:元 | - |
└─discountFree | number | 减免费用 单位:元 | - |
└─shouldFree | number | 应缴费用 总费用-减免费用 单位:元 | - |
└─realFree | number | 补缴费用 应缴费用-预缴费用 | - |
└─statu | string | 状态 1待处理、2计算完成、3处理完成 | - |
└─finishTime | string | 完成时间 | - |
└─remark | string | 备注 | - |
└─allOfWaterAmount | number | 水费总金额 | - |
└─allOfElectricPayment | number | 电费总金额 | - |
└─allOfReceiveAmount | number | 收预付款= 住房天数 * 住房押金(天) | - |
└─refundPayment | number | 退预付款(refundPayment)= 收预付款(allOfReceiveAmount) + 实际支付金额(payAmount) - 水费总金额(allOfWaterAmount) - 电费总金额(allOfElectricPayment) | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": {
"totalCount": 315,
"pageSize": 10,
"totalPage": 1,
"currPage": 1,
"list": [
{
"order": {
"id": 387,
"orderNo": "kzbv4q",
"userFlag": "isxt0f",
"userName": "伟泽.宋",
"userPhone": "14560980108",
"roomId": 974,
"roomNo": "i7sni1",
"roomTypeId": 990,
"roomTypeName": "伟泽.宋",
"roomTypeMasterImg": "ew6ev2",
"payAmount": 217,
"payMethod": "bcrdv7",
"createTime": "2023-07-13 16:54:47",
"payTime": "2023-07-13 16:54:47",
"orderStatu": "x9ytbx",
"bizStatu": "esz51f",
"enableStartTime": "2023-07-13 16:54:47",
"enableEndTime": "2023-07-13 16:54:47",
"realStartTime": "2023-07-13 16:54:47",
"realEndTime": "2023-07-13 16:54:47",
"mayIntoTime": "2023-07-13 16:54:47",
"remark": "7ztgdx",
"deleteFlag": "o2h0xx"
},
"orderBill": {
"id": 509,
"hotelOrderId": 761,
"roomId": 103,
"startOfWater": "6ra446",
"endOfWater": "t45uxp",
"startOfElectric": "jqhq2b",
"endOfElectric": "z7nyaw",
"priceOfWater": "ngnjpo",
"priceOfElectric": "0z7k1p",
"totalFree": 946,
"discountFree": 898,
"shouldFree": 409,
"realFree": 965,
"statu": "w040ld",
"finishTime": "2023-07-13 16:54:47",
"remark": "saheyg"
},
"allOfWaterAmount": 599,
"allOfElectricPayment": 955,
"allOfReceiveAmount": 672,
"refundPayment": 494
}
]
}
}3.6. 导出订单【管理端】
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 导出订单【管理端】
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
curPage | int32 | 当前页,默认1 | false | - |
pageSize | int32 | 每页大小,默认10 | false | - |
orderField | string | 排序字段,可选择值参考返回结果 | false | - |
order | string | 排序方式,可选值:asc、desc | false | - |
orderId | int64 | 订单id | false | - |
keyWord | string | 关键字(订单号、房间号) | false | - |
userFlag | string | 订单用户标识 | false | - |
userName | string | 用户姓名 | false | - |
userPhone | string | 用户手机号码 | false | - |
roomNo | string | 房间编号 | false | - |
roomTypeId | int64 | 房型id | false | - |
statu | string | 状态 0已取消、1待支付、2待入住、3已入住、4-1退款中、4-2欠款待支付、5已完成 | false | - |
enableStartTime | string | 最早入住时间 最早可入住时间 yyyy-MM-dd HH:mm:ss | false | - |
enableEndTime | string | 最晚离店时间 最晚要离店时间 yyyy-MM-dd HH:mm:ss | false | - |
payTime1 | string | 支付时间开始 yyyy-MM-dd HH:mm:ss | false | - |
payTime2 | string | 支付时间结束 yyyy-MM-dd HH:mm:ss | false | - |
createTime1 | string | 创建时间开始 yyyy-MM-dd HH:mm:ss | false | - |
createTime2 | string | 创建时间结束 yyyy-MM-dd HH:mm:ss | false | - |
deleteFlag | string | 删除标识 1正常,0删除 | false | - |
Request-example:
curl -X GET -i http://192.168.161.34:8089/ihotel/hotelOrder/admin/order/downOrder?roomTypeId=855&orderField=o0to28&deleteFlag=ohhyjn&enableEndTime=2023-07-13 16:54:47&curPage=1&statu=5dk9wm&payTime1=2023-07-13 16:54:47&order=2idk1m&createTime1=2023-07-13 16:54:47&userFlag=xbydbk&userPhone=14560980108&enableStartTime=2023-07-13 16:54:47&payTime2=2023-07-13 16:54:47&createTime2=2023-07-13 16:54:47&roomNo=o9ii0l&pageSize=10&orderId=593&keyWord=uk9gfh&userName=伟泽.宋Response-example:
Doesn't return a value.3.7. 订单详情 【用户端】
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 订单详情 【用户端】
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
user_token | string | 用户token | true | - |
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
orderId | int64 | 订单id | true | - |
Request-example:
curl -X GET -H 'user_token' -i http://192.168.161.34:8089/ihotel/hotelOrder/user/order/522Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─orderId | int64 | 订单id | - |
└─orderNo | string | 订单编号 | - |
└─userName | string | 用户姓名 | - |
└─userPhone | string | 用户手机号码 | - |
└─createTime | string | 下单时间 | - |
└─payTime | string | 支付时间 | - |
└─enableStartTime | string | 最早入住时间 最早可入住时间 | - |
└─enableEndTime | string | 最晚离店时间 最晚要离店时间 | - |
└─roomId | int64 | 房间id | - |
└─roomNo | string | 房间编号 | - |
└─roomTypeId | int64 | 房型id | - |
└─roomTypeName | string | 房型名称 | - |
└─roomTypeUsualPrice | number | 房型日常价格 | - |
└─roomTypeDiscountPrice | number | 房型优惠价格 | - |
└─payAmount | number | 实际支付金额 | - |
└─orderStatu | string | 订单状态 0已取消、1待支付、2待入住、3已入住、4待结账、5已完成 | - |
└─bizStatu | string | 业务状态 0待处理、1发起退款、2发起结账支付、3退款或结账支付完成,订单状态为4的时候,显示该状态 | - |
└─startOfWater | string | 水起码 单位:吨 | - |
└─endOfWater | string | 水止码 单位:吨 | - |
└─startOfElectric | string | 电起码 单位:度 | - |
└─endOfElectric | string | 电止码 单位:度 | - |
└─totalFree | number | (水电)总费用 单位:元 | - |
└─discountFree | number | (水电)减免费用 单位:元 | - |
└─shouldFree | number | 应缴费用 总费用-减免费用 单位:元 | - |
└─realFree | number | 补缴费用 应缴费用-预缴费用 【补缴费用大于0时需要调用补缴接口发起支付】 | - |
└─lockRealtimePassword | string | 锁实时密码 | - |
└─passwordStartTime | string | 锁实时密码有效时间-开始 | - |
└─passwordEndTime | string | 锁实时密码有效时间-结束 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": {
"orderId": 381,
"orderNo": "mxe67r",
"userName": "伟泽.宋",
"userPhone": "14560980108",
"createTime": "2023-07-13 16:54:47",
"payTime": "2023-07-13 16:54:47",
"enableStartTime": "2023-07-13 16:54:47",
"enableEndTime": "2023-07-13 16:54:47",
"roomId": 170,
"roomNo": "05nytl",
"roomTypeId": 408,
"roomTypeName": "伟泽.宋",
"roomTypeUsualPrice": 122,
"roomTypeDiscountPrice": 413,
"payAmount": 737,
"orderStatu": "5m3l8n",
"bizStatu": "e5vtsx",
"startOfWater": "oiy0vn",
"endOfWater": "0o0imj",
"startOfElectric": "bqkno6",
"endOfElectric": "2g7pqw",
"totalFree": 665,
"discountFree": 986,
"shouldFree": 58,
"realFree": 655,
"lockRealtimePassword": "yerb8x",
"passwordStartTime": "2023-07-13 16:54:47",
"passwordEndTime": "2023-07-13 16:54:47"
}
}3.8. 获取订单支付参数
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 获取订单支付参数
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
user_token | string | 用户token | true | - |
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
orderId | int64 | 订单id | true | - |
Request-example:
curl -X GET -H 'user_token' -i http://192.168.161.34:8089/ihotel/hotelOrder/user/order/pay/783Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─orderId | int64 | 订单id | - |
└─payAmount | number | 实际支付金额,如果实际支付金额为0,则不需要调用支付接口,直接跳转到支付成功页面 | - |
└─payUrl | string | 支付地址 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": {
"orderId": 233,
"payAmount": 256,
"payUrl": "www.xn---xn--ipw-gz6oe293c.net"
}
}3.9. 获取订单结账信息
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 获取订单结账信息
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
user_token | string | 用户token | true | - |
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
orderId | int64 | 订单id | true | - |
Request-example:
curl -X GET -H 'user_token' -i http://192.168.161.34:8089/ihotel/hotelOrder/user/order/bill/718Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─orderId | int64 | 订单id | - |
└─billId | int64 | 账单id | - |
└─flag | string | 处理标识 1待退款、2待补缴、3订单完结 | - |
└─refundFee | number | 待退款金额 | - |
└─supperFee | number | 待补缴金额 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": {
"orderId": 361,
"billId": 330,
"flag": "a6r7ut",
"refundFee": 706,
"supperFee": 53
}
}3.10. 删除订单【用户端】
Type: DELETE
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 删除订单【用户端】
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
user_token | string | 用户token | true | - |
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
orderId | int64 | 订单id | true | - |
Request-example:
curl -X DELETE -H 'user_token' -i http://192.168.161.34:8089/ihotel/hotelOrder/user/order/613Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": "wwmjt5"
}3.11. 删除订单【管理端】
Type: DELETE
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 删除订单【管理端】
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | 管理员token | true | - |
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
orderId | int64 | 订单id | true | - |
Request-example:
curl -X DELETE -H 'admin_token' -i http://192.168.161.34:8089/ihotel/hotelOrder/admin/order/975Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": "ea3lv5"
}3.12. 取消订单
Type: PUT
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 取消订单
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
user_token | string | 用户token | true | - |
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
orderId | int64 | 订单id | true | - |
Request-example:
curl -X PUT -H 'user_token' -i http://192.168.161.34:8089/ihotel/hotelOrder/user/order/cancel/338Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": "0ap09a"
}3.13. 办理入住
Type: PUT
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 办理入住
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
user_token | string | 用户token | true | - |
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
orderId | int64 | 订单id | true | - |
Request-example:
curl -X PUT -H 'user_token' -i http://192.168.161.34:8089/ihotel/hotelOrder/user/order/hold/593Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": "07ioqh"
}3.14. 办理退房
Type: PUT
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 办理退房
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
user_token | string | 用户token | true | - |
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
orderId | int64 | 订单id | true | - |
Request-example:
curl -X PUT -H 'user_token' -i http://192.168.161.34:8089/ihotel/hotelOrder/user/order/return/851Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─orderId | int64 | 订单id | - |
└─billId | int64 | 账单id | - |
└─flag | string | 处理标识 1待退款、2待补缴、3订单完结 | - |
└─refundFee | number | 待退款金额 | - |
└─supperFee | number | 待补缴金额 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": {
"orderId": 455,
"billId": 276,
"flag": "tvu1ts",
"refundFee": 821,
"supperFee": 913
}
}3.15. 生成统计报表 scheduled\SystemScheduled.java 每月1号凌晨5点自动统计上月数据
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 生成统计报表 scheduled\SystemScheduled.java 每月1号凌晨5点自动统计上月数据
Request-example:
curl -X GET -i http://192.168.161.34:8089/ihotel/hotelOrder/createReportResponse-example:
Doesn't return a value.4. 酒店员工
4.1. 部门员工列表
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 部门员工列表
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | 管理员token | true | - |
Request-example:
curl -X GET -H 'admin_token' -i http://192.168.161.34:8089/ihotel/ihotel/hotelStaff/departListResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | array | 接口调用返回数据 | - |
└─id | string | 部门id | - |
└─department | string | 部门名称 | - |
└─staffs | array | 员工信息 | - |
└─id | int64 | id | - |
└─cardNumber | string | 员工卡号 微校card_number | - |
└─phone | string | 手机号码 登录账号 | - |
└─username | string | 员工姓名 | - |
└─position | string | 职位 | - |
└─departid | string | 部门 | - |
└─statu | string | 状态 0冻结、1正常 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": [
{
"id": "8",
"department": "12f60v",
"staffs": [
{
"id": 217,
"cardNumber": "iddk7e",
"phone": "14560980108",
"username": "伟泽.宋",
"position": "2x1rjh",
"departid": "8",
"statu": "as9auq"
}
]
}
]
}4.2. 员工列表
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 员工列表
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | 管理员token | true | - |
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
keyword | string | 关键字,支持姓名和手机号搜索 | false | - |
curPage | int32 | 当前页,默认1 | false | - |
pageSize | int32 | 每页大小,默认10 | false | - |
orderField | string | 排序字段,可选择值参考返回结果 | false | - |
order | string | 排序方式,可选值:asc、desc | false | - |
Request-example:
curl -X GET -H 'admin_token' -i http://192.168.161.34:8089/ihotel/ihotel/hotelStaff/list?order=qc73k4&keyword=fhnihd&curPage=1&pageSize=10&orderField=qcr5fpResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─totalCount | int32 | 总记录数 | - |
└─pageSize | int32 | 每页记录数 | - |
└─totalPage | int32 | 总页数 | - |
└─currPage | int32 | 当前页数 | - |
└─list | array | 列表数据 | - |
└─id | int64 | id | - |
└─cardNumber | string | 员工卡号 微校card_number | - |
└─phone | string | 手机号码 登录账号 | - |
└─username | string | 员工姓名 | - |
└─position | string | 职位 | - |
└─departid | string | 部门 | - |
└─statu | string | 状态 0冻结、1正常 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": {
"totalCount": 487,
"pageSize": 10,
"totalPage": 1,
"currPage": 1,
"list": [
{
"id": 798,
"cardNumber": "61348y",
"phone": "14560980108",
"username": "伟泽.宋",
"position": "gnexru",
"departid": "8",
"statu": "bgusmm"
}
]
}
}4.3. 员工信息
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 员工信息
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | null | true | - |
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id | int64 | No comments found. | true | - |
Request-example:
curl -X GET -H 'admin_token' -i http://192.168.161.34:8089/ihotel/ihotel/hotelStaff/info/32Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─id | int64 | id | - |
└─cardNumber | string | 员工卡号 微校card_number | - |
└─phone | string | 手机号码 登录账号 | - |
└─username | string | 员工姓名 | - |
└─position | string | 职位 | - |
└─departid | string | 部门 | - |
└─statu | string | 状态 0冻结、1正常 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": {
"id": 772,
"cardNumber": "j8wjbw",
"phone": "14560980108",
"username": "伟泽.宋",
"position": "24cdfm",
"departid": "8",
"statu": "4jqy2n"
}
}4.4. 新增员工
Type: POST
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 新增员工
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | null | true | - |
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id | int64 | id | false | - |
cardNumber | string | 员工卡号 微校card_number | true | - |
phone | string | 手机号码 登录账号 | true | - |
username | string | 员工姓名 | true | - |
position | string | 职位 | true | - |
departid | string | 部门 | true | - |
statu | string | 状态 0冻结、1正常 | true | - |
Request-example:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -H 'admin_token' -i http://192.168.161.34:8089/ihotel/ihotel/hotelStaff/save --data '{
"id": 991,
"cardNumber": "no7ch0",
"phone": "14560980108",
"username": "伟泽.宋",
"position": "ugegyn",
"departid": "8",
"statu": "jwlbqc"
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": "kfe39p"
}4.5. 修改员工
Type: PUT
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 修改员工
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | null | true | - |
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id | int64 | id | false | - |
cardNumber | string | 员工卡号 微校card_number | true | - |
phone | string | 手机号码 登录账号 | true | - |
username | string | 员工姓名 | true | - |
position | string | 职位 | true | - |
departid | string | 部门 | true | - |
statu | string | 状态 0冻结、1正常 | true | - |
Request-example:
curl -X PUT -H 'Content-Type: application/json; charset=utf-8' -H 'admin_token' -i http://192.168.161.34:8089/ihotel/ihotel/hotelStaff/update --data '{
"id": 62,
"cardNumber": "ipedpf",
"phone": "14560980108",
"username": "伟泽.宋",
"position": "sh4ua5",
"departid": "8",
"statu": "pigcmd"
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": "643021"
}4.6. 删除员工
Type: DELETE
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 删除员工
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | null | true | - |
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
ids | array | No comments found.,[array of int64] | false |
Request-example:
curl -X DELETE -H 'Content-Type: application/json; charset=utf-8' -H 'admin_token' -i http://192.168.161.34:8089/ihotel/ihotel/hotelStaff/delete --data '[
880,
455
]'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": "5o14vm"
}5. 普通用户
5.1. 微校授权回调地址
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 用户跳转到微校授权链接上,微校服务器接收用户授权后会携带wxcode回调到该接口上,该接口使用wxcode获取到用户的信息。
如果用户信息获取成功,该接口会以 【fontEndUrl + /?token=】 的形式跳回到前端应用页面;
如果用户信息获取失败,该接口会以 【fontEndUrl + /error/?errorMsg=获取用户信息失败】 的形式跳回到前端应用页面。
注意:
fontEndUrl + 路由地址:前端项目地址+页面路由地址,用于前端页面接收用户的信息或错误信息,该地址需要前端人员与后台开发人员协调好。
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
wxcode | string | 微校code | false | - |
state | string | 透传数据 | false | - |
Request-example:
curl -X GET -i http://192.168.161.34:8089/ihotel/hotelUser/weixiaoAuth?wxcode=89662&state=e3kaigResponse-example:
string5.2.
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: null
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
code | string | No comments found. | false | - |
state | string | No comments found. | false | - |
Request-example:
curl -X GET -i http://192.168.161.34:8089/ihotel/hotelUser/weixinAuth?state=7ue3hf&code=89662Response-example:
string5.3. 获取用户信息
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 获取用户信息
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
user_token | string | 用户token | true | - |
Request-example:
curl -X GET -H 'user_token' -i http://192.168.161.34:8089/ihotel/hotelUser/userInfoResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─id | int64 | id | - |
└─cardNumber | string | 卡号 | - |
└─name | string | 姓名 | - |
└─telPhone | string | 手机号码 | - |
└─headImage | string | 头像 | - |
└─identityType | string | 身份类型 0其他、1学生、4教职工、5校友 | - |
└─statu | string | 状态 0拉黑、1正常 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": {
"id": 896,
"cardNumber": "su3zdc",
"name": "伟泽.宋",
"telPhone": "14560980108",
"headImage": "lqdo6g",
"identityType": "0uefz0",
"statu": "mpgbka"
}
}6. 文件服务
6.1. 获取上传文件签名
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 用于文件上传时获取上传文件签名,采用服务器签名后直传的方式进行文件上传,
具体文档参考:https://help.aliyun.com/document_detail/31926.html
Request-example:
curl -X GET -i http://192.168.161.34:8089/ihotel/oss/aliyun/policyResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─accessId | string | AccessKey ID | - |
└─policy | string | 用户表单上传的策略(Policy) | - |
└─signature | string | Policy签名后的字符串 | - |
└─dir | string | 文件前缀 | - |
└─host | string | 上传请求的域名 | - |
└─expire | string | Policy过期时间 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": {
"accessId": "8",
"policy": "p0ld2g",
"signature": "xclej3",
"dir": "vmqi1g",
"host": "vo3ug8",
"expire": "6zpck3"
}
}7.
7.1. 获取设备详情
Type: GET
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 获取设备详情
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | null | true | - |
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
luid | string | No comments found. | false | - |
Request-example:
curl -X GET -H 'admin_token' -i http://192.168.161.34:8089/ihotel/passwordIss/getDeviceInfo?luid=78600623-3799-4b10-8ac5-b61bee75c4cbResponse-example:
Doesn't return a value.7.2. 添加卡片
Type: POST
Content-Type: application/json; charset=utf-8
Description: 添加卡片
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | null | true | - |
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
luid | string | 锁设备ID | true | - |
card | string | 卡号 | true | - |
startTime | string | 开始时间 时间戳 | true | - |
endTime | string | 结束时间 时间戳 | true | - |
Request-example:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -H 'admin_token' -i http://192.168.161.34:8089/ihotel/passwordIss/addCardInfo --data '{
"luid": "78600623-3799-4b10-8ac5-b61bee75c4cb",
"card": "fstbr5",
"startTime": "2023-07-13 16:54:46",
"endTime": "2023-07-13 16:54:46"
}'Response-example:
Doesn't return a value.7.3. 下发指纹
Type: POST
Content-Type: application/json; charset=utf-8
Description: 下发指纹
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | null | true | - |
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
luid | string | 锁设备ID | true | - |
fingerprintData | string | 指纹特征值 | true | - |
startTime | string | 开始时间 时间戳 | true | - |
endTime | string | 结束时间 时间戳 | true | - |
Request-example:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -H 'admin_token' -i http://192.168.161.34:8089/ihotel/passwordIss/addFingerprintData --data '{
"luid": "78600623-3799-4b10-8ac5-b61bee75c4cb",
"fingerprintData": "sc65b4",
"startTime": "2023-07-13 16:54:46",
"endTime": "2023-07-13 16:54:46"
}'Response-example:
Doesn't return a value.7.4. 下发密码
Type: POST
Content-Type: application/json; charset=utf-8
Description: 下发密码
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | null | true | - |
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
luid | string | 锁设备ID | true | - |
startTime | string | 开始时间 时间戳 | true | - |
endTime | string | 结束时间 时间戳 | true | - |
Request-example:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -H 'admin_token' -i http://192.168.161.34:8089/ihotel/passwordIss/addPassword --data '{
"luid": "78600623-3799-4b10-8ac5-b61bee75c4cb",
"startTime": "2023-07-13 16:54:46",
"endTime": "2023-07-13 16:54:46"
}'Response-example:
Doesn't return a value.8. 酒店员工
8.1. 部门员工列表
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 部门员工列表
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | 管理员token | true | - |
Request-example:
curl -X GET -H 'admin_token' -i http://192.168.161.34:8089/ihotel/ihotel/hotelDepartment/listResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | array | 接口调用返回数据 | - |
└─id | string | id,新增时不需要传 | - |
└─name | string | 部门名称 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": [
{
"id": "8",
"name": "伟泽.宋"
}
]
}9. 房间
9.1. 房间列表(分页)
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 房间列表(分页)
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | null | true | - |
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
curPage | int32 | 当前页,默认1 | false | - |
pageSize | int32 | 每页大小,默认10 | false | - |
orderField | string | 排序字段,可选择值参考返回结果 | false | - |
order | string | 排序方式,可选值:asc、desc | false | - |
roomNo | string | 房间号 | false | - |
build | string | 所处楼栋 | false | - |
floor | string | 所处楼层 | false | - |
roomTypeId | int64 | 房型id | false | - |
Request-example:
curl -X GET -H 'admin_token' -i http://192.168.161.34:8089/ihotel/room/page?order=ovw3x6&floor=dlh49e&roomNo=k8cm3t&roomTypeId=503&build=ldih1w&pageSize=10&orderField=nzweej&curPage=1Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─totalCount | int32 | 总记录数 | - |
└─pageSize | int32 | 每页记录数 | - |
└─totalPage | int32 | 总页数 | - |
└─currPage | int32 | 当前页数 | - |
└─list | array | 列表数据 | - |
└─id | int64 | id,新增时不需要传 | - |
└─roomNo | string | 房屋号 | - |
└─build | string | 所处楼栋 | - |
└─floor | string | 所处楼层 | - |
└─roomTypeId | int64 | 房型id | - |
└─roomTypeName | string | 房型名称 | - |
└─enableUse | string | 是否可用 0否,1是 | - |
└─electricType | string | 电开关 1关,2开 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": {
"totalCount": 787,
"pageSize": 10,
"totalPage": 1,
"currPage": 1,
"list": [
{
"id": 467,
"roomNo": "rguggc",
"build": "oa3ik4",
"floor": "cncis2",
"roomTypeId": 140,
"roomTypeName": "伟泽.宋",
"enableUse": "8a1uef",
"electricType": "81lwt6"
}
]
}
}9.2. 房间列表(分页分组)
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 房间列表(分页分组)
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | null | true | - |
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
curPage | int32 | 当前页,默认1 | false | - |
pageSize | int32 | 每页大小,默认10 | false | - |
orderField | string | 排序字段,可选择值参考返回结果 | false | - |
order | string | 排序方式,可选值:asc、desc | false | - |
roomNo | string | 房间号 | false | - |
build | string | 所处楼栋 | false | - |
floor | string | 所处楼层 | false | - |
roomTypeId | int64 | 房型id | false | - |
Request-example:
curl -X GET -H 'admin_token' -i http://192.168.161.34:8089/ihotel/room/page/group?orderField=qj6jdq&roomTypeId=556&curPage=1&floor=7nsr4p&pageSize=10&order=aytk77&build=ndlfqf&roomNo=zd214zResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─totalCount | int32 | 总记录数 | - |
└─pageSize | int32 | 每页记录数 | - |
└─totalPage | int32 | 总页数 | - |
└─currPage | int32 | 当前页数 | - |
└─list | array | 列表数据 | - |
└─build | string | 楼栋号 | - |
└─floors | array | 楼层列表 | - |
└─floor | string | 楼层 | - |
└─room | array | 房间列表 | - |
└─id | int64 | id,新增时不需要传 | - |
└─roomNo | string | 房屋号 | - |
└─build | string | 所处楼栋 | - |
└─floor | string | 所处楼层 | - |
└─roomTypeId | int64 | 房型id | - |
└─roomTypeName | string | 房型名称 | - |
└─enableUse | string | 是否可用 0否,1是 | - |
└─electricType | string | 电开关 1关,2开 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": {
"totalCount": 389,
"pageSize": 10,
"totalPage": 1,
"currPage": 1,
"list": [
{
"build": "hrx898",
"floors": [
{
"floor": "5z6tbu",
"room": [
{
"id": 658,
"roomNo": "mf6rxb",
"build": "g0hup9",
"floor": "ua0k7k",
"roomTypeId": 58,
"roomTypeName": "伟泽.宋",
"enableUse": "t9vu82",
"electricType": "f1m2s0"
}
]
}
]
}
]
}
}9.3. 新增房间
Type: POST
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 新增房间
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | null | true | - |
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id | int64 | id,新增时不需要传 | false | - |
roomNo | string | 房屋号 | true | - |
build | string | 所处楼栋 | true | - |
floor | string | 所处楼层 | true | - |
roomTypeId | int64 | 房型id | true | - |
roomTypeName | string | 房型名称 | true | - |
enableUse | string | 是否可用 0否,1是 | true | - |
electricType | string | 电开关 1关,2开 | true | - |
Request-example:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -H 'admin_token' -i http://192.168.161.34:8089/ihotel/room/save --data '{
"id": 312,
"roomNo": "ob6sdg",
"build": "jnytyd",
"floor": "yxbrb1",
"roomTypeId": 641,
"roomTypeName": "伟泽.宋",
"enableUse": "4uj4m7",
"electricType": "dln6u5"
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": "vtswdq"
}9.4. 修改房间
Type: PUT
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 修改房间,房型数据不能被修改,若要修改房间房型,请先删除后新增
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | null | true | - |
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id | int64 | id,新增时不需要传 | false | - |
roomNo | string | 房屋号 | true | - |
build | string | 所处楼栋 | true | - |
floor | string | 所处楼层 | true | - |
roomTypeId | int64 | 房型id | true | - |
roomTypeName | string | 房型名称 | true | - |
enableUse | string | 是否可用 0否,1是 | true | - |
electricType | string | 电开关 1关,2开 | true | - |
Request-example:
curl -X PUT -H 'Content-Type: application/json; charset=utf-8' -H 'admin_token' -i http://192.168.161.34:8089/ihotel/room/update --data '{
"id": 588,
"roomNo": "bis3nn",
"build": "37qznm",
"floor": "339h21",
"roomTypeId": 569,
"roomTypeName": "伟泽.宋",
"enableUse": "nil1uf",
"electricType": "z1uh4n"
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": "1jlgul"
}9.5. 删除房间
Type: DELETE
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 删除房间
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | null | true | - |
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
ids | array | No comments found.,[array of int64] | false |
Request-example:
curl -X DELETE -H 'Content-Type: application/json; charset=utf-8' -H 'admin_token' -i http://192.168.161.34:8089/ihotel/room/delete --data '[
394,
387
]'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": "qv261n"
}10. 门锁
10.1. 根据房间id查询密码锁
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 根据房间id查询密码锁
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | 管理员token | true | - |
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
roomId | int64 | 房间id | true | - |
Request-example:
curl -X GET -H 'admin_token' -i http://192.168.161.34:8089/ihotel/roomDoorLock/room/130Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | array | 接口调用返回数据 | - |
└─id | int64 | id | - |
└─roomId | int64 | 房间id | - |
└─orderId | int64 | 订单id | - |
└─lockId | string | 锁id 用于删除锁 | - |
└─lockRealtimePassword | string | 实时密码 | - |
└─startTime | string | 有效时间-开始 | - |
└─endTime | string | 有效时间-结束 | - |
└─updateTime | string | 更新时间 | - |
└─lockUserId | string | 锁用户ID(调用青松接口返回的id) | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": [
{
"id": 16,
"roomId": 933,
"orderId": 63,
"lockId": "8",
"lockRealtimePassword": "nqq75n",
"startTime": "2023-07-13 16:54:47",
"endTime": "2023-07-13 16:54:47",
"updateTime": "2023-07-13 16:54:47",
"lockUserId": "8"
}
]
}10.2. 根据订单id查询密码锁
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 根据订单id查询密码锁
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | 管理员token | true | - |
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
orderId | int64 | 订单id | true | - |
Request-example:
curl -X GET -H 'admin_token' -i http://192.168.161.34:8089/ihotel/roomDoorLock/order/167Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | array | 接口调用返回数据 | - |
└─id | int64 | id | - |
└─roomId | int64 | 房间id | - |
└─orderId | int64 | 订单id | - |
└─lockId | string | 锁id 用于删除锁 | - |
└─lockRealtimePassword | string | 实时密码 | - |
└─startTime | string | 有效时间-开始 | - |
└─endTime | string | 有效时间-结束 | - |
└─updateTime | string | 更新时间 | - |
└─lockUserId | string | 锁用户ID(调用青松接口返回的id) | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": [
{
"id": 356,
"roomId": 383,
"orderId": 373,
"lockId": "8",
"lockRealtimePassword": "g235ns",
"startTime": "2023-07-13 16:54:47",
"endTime": "2023-07-13 16:54:47",
"updateTime": "2023-07-13 16:54:47",
"lockUserId": "8"
}
]
}10.3. 根据订单id下发密码锁
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 根据订单id下发密码锁
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | 管理员token | true | - |
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id | int64 | 门锁id | true | - |
Request-example:
curl -X GET -H 'admin_token' -i http://192.168.161.34:8089/ihotel/roomDoorLock/sendPassword/471Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | array | 接口调用返回数据 | - |
└─id | int64 | id | - |
└─roomId | int64 | 房间id | - |
└─orderId | int64 | 订单id | - |
└─lockId | string | 锁id 用于删除锁 | - |
└─lockRealtimePassword | string | 实时密码 | - |
└─startTime | string | 有效时间-开始 | - |
└─endTime | string | 有效时间-结束 | - |
└─updateTime | string | 更新时间 | - |
└─lockUserId | string | 锁用户ID(调用青松接口返回的id) | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": [
{
"id": 403,
"roomId": 139,
"orderId": 141,
"lockId": "8",
"lockRealtimePassword": "zbojyv",
"startTime": "2023-07-13 16:54:47",
"endTime": "2023-07-13 16:54:47",
"updateTime": "2023-07-13 16:54:47",
"lockUserId": "8"
}
]
}11. 实时房态
11.1. 房态信息
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 房态信息
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | 管理员token | true | - |
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
startDay | string | 开始时间 yyyy-MM-dd | true | - |
endDay | string | 结束时间 yyyy-MM-dd | true | - |
roomIds | array | 房间id集合 | true | - |
statu | string | 房态类型 状态 1空闲、2预定、3入住、4脏房、5锁定 逗号拼接1,2,3,4,5 | false | - |
Request-example:
curl -X GET -H 'admin_token' -i http://192.168.161.34:8089/ihotel/roomRealTimeStatu/realData?endDay=2023-07-13&statu=hbvsv6&startDay=2023-07-13Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | array | 接口调用返回数据 | - |
└─roomId | int64 | 房间id | - |
└─statuId | int64 | 房态id,房态为1时该字段不会存在 | - |
└─statu | string | 当前状态 1空闲、2预定、3入住、4脏房、5锁定 | - |
└─useInfo | object | 房间使用信息 当前状态为2、3、4时该字段有值 | - |
└─orderId | int64 | 订单id | - |
└─userName | string | 客人姓名 | - |
└─enableStartTime | string | 开始时间 | - |
└─enableEndTime | string | 退房时间 | - |
└─startOfWater | string | 水起码 单位:吨 | - |
└─startOfElectric | string | 电起码 单位:度 | - |
└─electricType | string | 电开关 1关,2开 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": [
{
"roomId": 812,
"statuId": "78600623-3799-4b10-8ac5-b61bee75c4cb",
"statu": "xee4s1",
"useInfo": {
"orderId": 783,
"userName": "伟泽.宋",
"enableStartTime": "2023-07-13 16:54:47",
"enableEndTime": "2023-07-13 16:54:47",
"startOfWater": "1h1zu5",
"startOfElectric": "0as71e"
},
"electricType": "j3lo9g"
}
]
}11.2. 脏房修改为空闲房间
Type: POST
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 注意,只有当房间为脏房或被锁定时,房间状态才可以被置为空闲房间
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | 管理员token | true | - |
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
statuIds | array | No comments found. | false | - |
Request-example:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -H 'admin_token' -i http://192.168.161.34:8089/ihotel/roomRealTimeStatu/clean/cleanByStatuId --data '{
"statuIds": [
155
]
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": "3ph9fn"
}11.3. 房间转为脏房
Type: PUT
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 房间转为脏房
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | 管理员token | true | - |
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
roomId | int64 | 房间id | true | - |
startDay | string | 状态开始时间 | true | - |
endDay | string | 状态结束时间 | true | - |
Request-example:
curl -X PUT -H 'Content-Type: application/json; charset=utf-8' -H 'admin_token' -i http://192.168.161.34:8089/ihotel/roomRealTimeStatu/toDirty --data '{
"roomId": 189,
"startDay": "2023-07-13",
"endDay": "2023-07-13"
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": "ezvptt"
}11.4. 锁定房间
Type: PUT
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 锁定房间
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | 管理员token | true | - |
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
roomId | array | 房间id | true | - |
startDate | string | 锁定开始时间 yyyy-MM-dd | true | - |
endDate | string | 锁定结束时间 yyyy-MM-dd | true | - |
remark | string | 备注 | false | - |
Request-example:
curl -X PUT -H 'Content-Type: application/json; charset=utf-8' -H 'admin_token' -i http://192.168.161.34:8089/ihotel/roomRealTimeStatu/lock --data '{
"roomId": [
895
],
"startDate": "2023-07-13",
"endDate": "2023-07-13",
"remark": "xtriv4"
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": "obps6p"
}12. 房间第三方平台设置
12.1. 新增房间第三方平台设置
Type: POST
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 新增房间第三方平台设置
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | 管理员token | true | - |
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id | int64 | id,新增时不需要传 | false | - |
roomId | int64 | 房间id | false | - |
waterId | string | 水表码 | true | - |
electricId | string | 电表码 | true | - |
lockId | string | UID锁id | true | - |
Request-example:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -H 'admin_token' -i http://192.168.161.34:8089/ihotel/roomThirdSetting/add --data '{
"id": 961,
"roomId": 48,
"waterId": "8",
"electricId": "8",
"lockId": "8"
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": "mk5pha"
}12.2. 修改房间第三方平台设置
Type: POST
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 修改房间第三方平台设置
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | 管理员token | true | - |
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id | int64 | id,新增时不需要传 | false | - |
roomId | int64 | 房间id | false | - |
waterId | string | 水表码 | true | - |
electricId | string | 电表码 | true | - |
lockId | string | UID锁id | true | - |
Request-example:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -H 'admin_token' -i http://192.168.161.34:8089/ihotel/roomThirdSetting/update --data '{
"id": 478,
"roomId": 760,
"waterId": "8",
"electricId": "8",
"lockId": "8"
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": "khr79x"
}12.3. 根据房间id查询
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 根据房间id查询
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | 管理员token | true | - |
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
roomId | int64 | 房间id | true | - |
Request-example:
curl -X GET -H 'admin_token' -i http://192.168.161.34:8089/ihotel/roomThirdSetting/setting/208Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─id | int64 | id,新增时不需要传 | - |
└─roomId | int64 | 房间id | - |
└─waterId | string | 水表码 | - |
└─electricId | string | 电表码 | - |
└─lockId | string | UID锁id | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": {
"id": 394,
"roomId": 252,
"waterId": "8",
"electricId": "8",
"lockId": "8"
}
}12.4. 电控制
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 电控制
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | 管理员token | true | - |
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
roomId | int64 | 房间id | true | - |
operType | string | 操作类型 1关电、2开电 | true | - |
Request-example:
curl -X GET -H 'admin_token' -i http://192.168.161.34:8089/ihotel/roomThirdSetting/changeElectric/596/3a2igwResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─operType | string | 电控操作类型 1关电 2开电 | - |
└─resultType | string | 电控操作后电状态 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": {
"operType": "skwdp3",
"resultType": "bkeosw"
}
}13. 房型
13.1. 房型列表(客户端)
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 房型列表(客户端)
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
startDate | string | 入住时间 yyyy-MM-dd | true | - |
endDate | string | 离店时间 yyyy-MM-dd | true | - |
Request-example:
curl -X GET -i http://192.168.161.34:8089/ihotel/roomType/list?startDate=2023-07-13&endDate=2023-07-13Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | array | 接口调用返回数据 | - |
└─id | int64 | 房型id | - |
└─typeName | string | 房型名称 | - |
└─usualPrice | number | 日常价格 单位:元/间/晚 | - |
└─discountPrice | number | 优惠价格 单位:元/间/晚 | - |
└─typeShortDesc | string | 房型简单描述 | - |
└─enableNum | int32 | 房间剩余数量 | - |
└─masterImage | string | 房型图 | - |
└─depositPrice | number | 把预付款每晚不得少于钱 - (水费补助价格 + 电费补助价格) | - |
└─preDay | int32 | 最多能预定多少天 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": [
{
"id": 675,
"typeName": "伟泽.宋",
"usualPrice": 171,
"discountPrice": 394,
"typeShortDesc": "6o5e7v",
"enableNum": 51,
"masterImage": "eg22ox",
"depositPrice": 605,
"preDay": 90
}
]
}13.2. 房型列表(管理端)
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 房型列表(管理端)
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | null | true | - |
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
curPage | int32 | 当前页,默认1 | false | - |
pageSize | int32 | 每页大小,默认10 | false | - |
orderField | string | 排序字段,可选择值参考返回结果 | false | - |
order | string | 排序方式,可选值:asc、desc | false | - |
Request-example:
curl -X GET -H 'admin_token' -i http://192.168.161.34:8089/ihotel/roomType/page?pageSize=10&orderField=e3mudk&order=pl948w&curPage=1Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─totalCount | int32 | 总记录数 | - |
└─pageSize | int32 | 每页记录数 | - |
└─totalPage | int32 | 总页数 | - |
└─currPage | int32 | 当前页数 | - |
└─list | array | 列表数据 | - |
└─id | int64 | id,新增时不用传 | - |
└─typeName | string | 房型名称 | - |
└─usualPrice | number | 日常价格 单位:元/间/晚 | - |
└─discountPrice | number | 优惠价格 单位:元/间/晚 | - |
└─typeShortDesc | string | 房型简单描述 | - |
└─typeDesc | string | 房型详细描述 | - |
└─roomNum | int32 | 房间数量 | - |
└─typeImage | string | 房型图,使用阿里云上传获取图片链接 第一张为主图,多张图片之间使用,分割 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": {
"totalCount": 610,
"pageSize": 10,
"totalPage": 1,
"currPage": 1,
"list": [
{
"id": 583,
"typeName": "伟泽.宋",
"usualPrice": 631,
"discountPrice": 538,
"typeShortDesc": "8mxkp0",
"typeDesc": "39cxu1",
"roomNum": 541,
"typeImage": "cwzrlp"
}
]
}
}13.3. 房型详细信息
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 房型详细信息
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id | int64 | No comments found. | true | - |
Request-example:
curl -X GET -i http://192.168.161.34:8089/ihotel/roomType/info/629Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─id | int64 | id,新增时不用传 | - |
└─typeName | string | 房型名称 | - |
└─usualPrice | number | 日常价格 单位:元/间/晚 | - |
└─discountPrice | number | 优惠价格 单位:元/间/晚 | - |
└─typeShortDesc | string | 房型简单描述 | - |
└─typeDesc | string | 房型详细描述 | - |
└─roomNum | int32 | 房间数量 | - |
└─typeImage | string | 房型图,使用阿里云上传获取图片链接 第一张为主图,多张图片之间使用,分割 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": {
"id": 692,
"typeName": "伟泽.宋",
"usualPrice": 454,
"discountPrice": 135,
"typeShortDesc": "mrbs7o",
"typeDesc": "4c6zze",
"roomNum": 323,
"typeImage": "dfcuka"
}
}13.4. 新增房型
Type: POST
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 新增房型
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | null | true | - |
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id | int64 | id,新增时不用传 | false | - |
typeName | string | 房型名称 | true | - |
usualPrice | number | 日常价格 单位:元/间/晚 | true | - |
discountPrice | number | 优惠价格 单位:元/间/晚 | true | - |
typeShortDesc | string | 房型简单描述 | true | - |
typeDesc | string | 房型详细描述 | true | - |
roomNum | int32 | 房间数量 | true | - |
typeImage | string | 房型图,使用阿里云上传获取图片链接 第一张为主图,多张图片之间使用,分割 | true | - |
Request-example:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -H 'admin_token' -i http://192.168.161.34:8089/ihotel/roomType/save --data '{
"id": 272,
"typeName": "伟泽.宋",
"usualPrice": 637,
"discountPrice": 95,
"typeShortDesc": "bxgu5x",
"typeDesc": "kunmsm",
"roomNum": 486,
"typeImage": "ljs0jj"
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": "b4gma6"
}13.5. 修改房型
Type: PUT
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 修改房型
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | null | true | - |
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id | int64 | id,新增时不用传 | false | - |
typeName | string | 房型名称 | true | - |
usualPrice | number | 日常价格 单位:元/间/晚 | true | - |
discountPrice | number | 优惠价格 单位:元/间/晚 | true | - |
typeShortDesc | string | 房型简单描述 | true | - |
typeDesc | string | 房型详细描述 | true | - |
roomNum | int32 | 房间数量 | true | - |
typeImage | string | 房型图,使用阿里云上传获取图片链接 第一张为主图,多张图片之间使用,分割 | true | - |
Request-example:
curl -X PUT -H 'Content-Type: application/json; charset=utf-8' -H 'admin_token' -i http://192.168.161.34:8089/ihotel/roomType/update --data '{
"id": 856,
"typeName": "伟泽.宋",
"usualPrice": 129,
"discountPrice": 36,
"typeShortDesc": "qq0f0a",
"typeDesc": "w35tke",
"roomNum": 242,
"typeImage": "c7fgtg"
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": "10n1vn"
}13.6. 删除房型
Type: DELETE
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 删除房型
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | null | true | - |
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
ids | array | No comments found.,[array of int64] | false |
Request-example:
curl -X DELETE -H 'Content-Type: application/json; charset=utf-8' -H 'admin_token' -i http://192.168.161.34:8089/ihotel/roomType/delete --data '[
117,
771
]'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": "mu6ykk"
}14. 统计报表
14.1. 查询统计报表数据【管理端】
Type: GET
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 查询统计报表数据【管理端】
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | 管理员token令牌 | true | - |
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
curPage | int32 | 当前页,默认1 | false | - |
pageSize | int32 | 每页大小,默认10 | false | - |
orderField | string | 排序字段,可选择值参考返回结果 | false | - |
order | string | 排序方式,可选值:asc、desc | false | - |
startTime | string | 起始时间 yyyy-MM | false | - |
endTime | string | 终止时间 yyyy-MM | false | - |
Request-example:
curl -X GET -H 'admin_token' -i http://192.168.161.34:8089/ihotel/report/queryReport?order=mdltjm&pageSize=10&orderField=31i4ke&endTime=2023-07-13 16:54:46&startTime=2023-07-13 16:54:46&curPage=1Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": {
"waring": "You may have used non-display generics."
}
}14.2. 导出报表【管理端】
Type: GET
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 导出报表【管理端】
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
startTime | string | 起始时间 yyyy-MM | false | - |
endTime | string | 终止时间 yyyy-MM | false | - |
Request-example:
curl -X GET -i http://192.168.161.34:8089/ihotel/report/downLoadReport?endTime=2023-07-13 16:54:46&startTime=2023-07-13 16:54:46Response-example:
Doesn't return a value.15. 系统通知
15.1. 通知列表
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 通知列表
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | 管理员token | true | - |
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
readFlag | string | 已读标识 0未读、1已读 | false | - |
curPage | int32 | 当前页,默认1 | false | - |
pageSize | int32 | 每页大小,默认10 | false | - |
orderField | string | 排序字段,可选择值参考返回结果 | false | - |
order | string | 排序方式,可选值:asc、desc | false | - |
Request-example:
curl -X GET -H 'admin_token' -i http://192.168.161.34:8089/ihotel/systemNotice/list?readFlag=q6en5e&pageSize=10&orderField=rmcfgj&curPage=1&order=rymqd0Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─totalCount | int32 | 总记录数 | - |
└─pageSize | int32 | 每页记录数 | - |
└─totalPage | int32 | 总页数 | - |
└─currPage | int32 | 当前页数 | - |
└─list | array | 列表数据 | - |
└─id | int64 | id | - |
└─title | string | 标题 | - |
└─content | string | 内容 | - |
└─type | string | 类型 | - |
└─createTime | string | 发生时间 | - |
└─readFlag | string | 是否已读 0未读、1已读 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": {
"totalCount": 413,
"pageSize": 10,
"totalPage": 1,
"currPage": 1,
"list": [
{
"id": 341,
"title": "r5tep7",
"content": "ts27vx",
"type": "2zifbv",
"createTime": "2023-07-13 16:54:48",
"readFlag": "qt72l1"
}
]
}
}15.2. 标记为已读
Type: PUT
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 标记为已读
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | 管理员token | true | - |
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
ids | array | 消息id集合,[array of int64] | false |
Request-example:
curl -X PUT -H 'Content-Type: application/json; charset=utf-8' -H 'admin_token' -i http://192.168.161.34:8089/ihotel/systemNotice/read --data '[
62,
97
]'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": "wr2bqf"
}15.3. 删除通知
Type: DELETE
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 删除通知
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | 管理员token | true | - |
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
ids | array | 消息id集合,[array of int64] | false |
Request-example:
curl -X DELETE -H 'Content-Type: application/json; charset=utf-8' -H 'admin_token' -i http://192.168.161.34:8089/ihotel/systemNotice/delete --data '[
336,
760
]'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": "wc849w"
}16. 系统设置
16.1. 获取系统设置
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 获取系统设置
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | 管理员token | true | - |
Request-example:
curl -X GET -H 'admin_token' -i http://192.168.161.34:8089/ihotel/systemSetting/infoResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─id | int64 | id | - |
└─deposit | number | 押金 单位:元 | - |
└─preDay | int32 | 预定提前天数 单位:天 | - |
└─priceOfWater | number | 水费单价 单位:元/吨 | - |
└─priceOfElectric | number | 电费单价 位:元/度 | - |
└─freeQuotaOfWater | number | 水免费额度 单位:吨 | - |
└─freeQuotaOfElectric | number | 电免费额度 单位:度 | - |
└─freeTotal | number | 水电免费额度总金额 单位:元 | - |
└─turnOffTime | int32 | 退房后断水断电时间 单位:分钟 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": {
"id": 310,
"deposit": 401,
"preDay": 946,
"priceOfWater": 707,
"priceOfElectric": 851,
"freeQuotaOfWater": 603,
"freeQuotaOfElectric": 259,
"freeTotal": 46,
"turnOffTime": 85
}
}16.2. 修改系统设置
Type: PUT
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 修改系统设置
Request-headers:
| Header | Type | Description | Required | Since |
|---|---|---|---|---|
admin_token | string | null | true | - |
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id | int64 | id | true | - |
deposit | number | 押金 单位:元 | true | - |
preDay | int32 | 预定提前天数 单位:天 | true | - |
priceOfWater | number | 水费单价 单位:元/吨 | true | - |
priceOfElectric | number | 电费单价 位:元/度 | true | - |
freeQuotaOfWater | number | 水免费额度 单位:吨 | true | - |
freeQuotaOfElectric | number | 电免费额度 单位:度 | true | - |
freeTotal | number | 水电免费额度总金额 单位:元 | true | - |
turnOffTime | int32 | 退房后断水断电时间 单位:分钟 | true | - |
Request-example:
curl -X PUT -H 'Content-Type: application/json; charset=utf-8' -H 'admin_token' -i http://192.168.161.34:8089/ihotel/systemSetting/update --data '{
"id": 879,
"deposit": 227,
"preDay": 222,
"priceOfWater": 151,
"priceOfElectric": 362,
"freeQuotaOfWater": 260,
"freeQuotaOfElectric": 372,
"freeTotal": 303,
"turnOffTime": 830
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "89662",
"data": "lglgqm"
}17. 错误码列表
| Error code | Description |
|---|---|
10000 | 系统未知异常 |
10001 | 请求方法不支持 |
10002 | 缺少必要的请求头 |
10003 | 无效的token |
10004 | token为空 |
10005 | 管理员登录失败 |
10006 | 权限不足 |
11001 | 参数格式校验失败 |
11002 | body为空 |
11003 | 参数异常 |
11004 | 重复提交表单 |
11005 | 订单提交失败 |
11006 | 消费者消费异常 |
11007 | 第三方服务调用失败 |
11008 | 农商行订单状态查询失败 |
16000 | 数据已存在 |
16000 | 数据不存在 |
16006 | 临时文件不存在 |
16007 | 文件上传失败 |
16008 | 文件太大 |
16009 | 只能关闭当天房间 |