# 2008 Hotel Reservation Service
# content_json definition
parameter | Is required | type | Introductions | Format requirements |
---|---|---|---|---|
cur_status | yes | int32 | Current status id | |
wxa_path_query | yes | string | Card click the jump path and query | |
product_list | Reference Status Requirements | object | Hotel Information | |
check_in_Time | Reference Status Requirements | uint32 | Check in time | Second time stamp, displayed as MM/DD HH: mm format |
check_out_Time | Reference Status Requirements | uint32 | Check-out time | Second time stamp, displayed as MM/DD HH: mm format |
product_list definition
parameter | Is required | type | Introductions | Format requirements |
---|---|---|---|---|
Info_list | yes | array< object> | Hotel Information |
Info_list definition
parameter | Is required | type | Introductions | Format requirements |
---|---|---|---|---|
product_img | yes | string | Hotel Pictures | |
product_Name | yes | string | Name of Hotel | |
product_path_query | yes | string | Hotel path and query | |
count | no | uint32 | Days of stay, the default is 1 | |
Single_price | no | uint32 | Single Day Price | The unit is divided |
# cur_Status passes in the meaning of the status id, and the fields under the different status id require
id | Is this state possible when activated? | Can change from previous state* | State description | Required fields in this state | Optional field in this state | content_Example of json |
---|---|---|---|---|---|---|
1 | yes | 7 | Paid | product_list check_in_Time check_out_Time wxa_path_query | "{"cur_status":1, "product_list": { "info_list":[{"product_img": "https://res.wx.qq .com /op_res/DiSd8fVjXuHr5K9U73oRr-0imv0GklZrlRRj_mZmbnO0jT349XT-qIzT_DmjQsDLSO3xZbUTbOP--HA_BosOoA","product_Name":TIT Grand Hotel ","product_path_query":"pages/index/index","count": 1,"single_price": 111}]},"check_in_Time": 1691640000,"check_out_Time": 1691726400,"wxa_path_query":"pages/index/index"}" | |
2 | yes | 1, 7 | Reservation Success | product_list check_in_Time check_out_Time wxa_path_query | "{"cur_status":2, "product_list": { "info_list":[{"product_img": "https://res.wx.qq .com /op_res/DiSd8fVjXuHr5K9U73oRr-0imv0GklZrlRRj_mZmbnO0jT349XT-qIzT_DmjQsDLSO3xZbUTbOP--HA_BosOoA","product_Name":TIT Grand Hotel ","product_path_query":"pages/index/index","count": 1,"single_price": 111}]},"check_in_Time": 1691640000,"check_out_Time": 1691726400,"wxa_path_query":"pages/index/index"}" | |
3 | no | 1, 7 | Reservation failure | wxa_path_query | "{"cur_status":3, "wxa_path_query":"pages/index/index"}" | |
4 | no | 1, 2, 7 | To be checked in | wxa_path_query | "{"cur_status":4, "wxa_path_query":"pages/index/index"}" | |
5 | no | 2, 4, 5, 7 | Checked in | check_in_Time check_out_Time wxa_path_query | "{"cur_status":5, "check_in_Time": 1691640000, "check_out_Time": 1691726400, "wxa_path_query":"pages/index/index"}" | |
6 | no | 5, 7 | Checked out | check_out_Time wxa_path_query | "{"cur_status":6, "check_out_Time": 1691726400, "wxa_path_query":"pages/index/index"}" | |
7 | no | 1, 2, 3, 4, 5 | After sale | wxa_path_query | "{"cur_status":7, "wxa_path_query":"pages/index/index"}" | |
8 | no | 7 | The sale is over. | wxa_path_query | "{"cur_status":8, "wxa_path_query":"pages/index/index"}" | |
9 | no | 7 | The sale order is closed | wxa_path_query | "{"cur_status":9, "wxa_path_query":"pages/index/index"}" | |
10 | no | 1, 2, 3, 4, 5, 6, 7 | Order cancelled | wxa_path_query | "{"cur_status":10, "wxa_path_query":"pages/index/index"}" |
Can change from previous stateIntroductions
- The number in this column indicates that the current state can only be changed by these states (this is not required on activation)
- It should be noted that the current state changes to the current state, but also requires the status id in this column: if the current state is 1, only if 1 is also in this column, the next update when the status is passed 1
- A state id that does not exist in this column, meaning the end state, and the service state is no longer updatable
# ext_json definition
parameter | Is required | type | Introductions | Format requirements |
---|---|---|---|---|
store_Info | no | object | Store information | |
product_additional_list | yes | object | Hotel additional information, with product_List sort one-to-one correspondence |
store_Info definition
parameter | Is required | type | Introductions | Format requirements |
---|---|---|---|---|
store_Name | yes | string | Name of store | |
province | yes | string | Province/region | |
city | yes | string | City | |
county | yes | string | District/county | |
store_address | no | string | Detailed address | |
store_id | no | uint64 | Store send id | If you are connectedStore delivery, the above store related information field does not need to be passed in, can be directly passed “Store id (store_id)”, if all fields are passed in, we give priority to store information for store express delivery. |
product_additional_list definition
parameter | Is required | type | Introductions | Format requirements |
---|---|---|---|---|
Info_list | yes | array< object> | Product Additional Information |
Info_list definition
parameter | Is required | type | Introductions | Format requirements |
---|---|---|---|---|
unit_price | yes | uint32 | Single Day Price | The unit is divided |
number | yes | uint32 | Number of nights |