# 2008 Hotel Booking Services Developments
# Content_json definition
| parameter | Is it compulsory? | 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-level timestamps, displayed in MM / DDHH: mm format |
| check_out_time | Reference status requirements | uint32 | Checkout time | Second-level timestamps, displayed in MM / DDHH: mm format |
Product_list definition
| parameter | Is it compulsory? | type | Introductions | Format requirements |
|---|---|---|---|---|
| info_list | yes | array | Hotel Information |
Info_list definition
| parameter | Is it compulsory? | type | Introductions | Format requirements |
|---|---|---|---|---|
| product_img | yes | string | Hotel Photos | |
| product_name | yes | string | Hotel Name | |
| product_path_query | yes | string | Hotel path and query | |
| count | no | uint32 | Number of days stayed, by default 1 | |
| single_price | no | uint32 | One day price | Units are divided |
# Cur_status passes in the meaning of the state id, and the field under the different state id requires
| id | Is it possible for this state to be activated? | Can be changed from previous state * | Status Description | Required fields under this state | Select fields in this state | Content_json example |
|---|---|---|---|---|---|---|
| 1 | yes | 7 | Payment has been made | 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\":\"TITThe 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 | The booking was successful | 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\":\"TITThe 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 | The booking failed | wxa_path_query | "{\"cur_status\":3, \"wxa_path_query\":\"pages/index/index\"}" | |
| 4 | no | 1, 2, 7 | Please check in. | wxa_path_query | "{\"cur_status\":4, \"wxa_path_query\":\"pages/index/index\"}" | |
| 5 | no | 2, 4, 5, 7 | I'm staying. | 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 | I've 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 sales, | wxa_path_query | "{\"cur_status\":7, \"wxa_path_query\":\"pages/index/index\"}" | |
| 8 | no | 7 | The sales are over. | wxa_path_query | "{\"cur_status\":8, \"wxa_path_query\":\"pages/index/index\"}" | |
| 9 | no | 7 | The sales 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 be changed from previous state" specification
- The numbers in this column indicate that the current state can only be changed by these states (this is not required when activating)
- Note that changing the current state to the current state also requires the state ID to be in this column: If the current state is 1, the state is allowed to be passed to 1 at the next update only if 1 is also in this column
- 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 it compulsory? | type | Introductions | Format requirements |
|---|---|---|---|---|
| store_info | no | object | Store Information | |
| product_additional_list | yes | object | Hotel attachment, one-to-one correspondence with product_list sort |
Store_info definition
| parameter | Is it compulsory? | type | Introductions | Format requirements |
|---|---|---|---|---|
| store_name | yes | string | Store Name | |
| province | yes | string | Province / region in which you live | |
| city | yes | string | City of residence | |
| county | yes | string | District / County | |
| store_address | no | string | Detailed address | |
| store_id | no | uint64 | Store send id | If you have entered " Store Express ," the above store-related information field does not need to be entered, but can be directly entered "store id" (store_id). If all the fields are entered, we prefer store information for store Express. |
Product_additional_list Definition
| parameter | Is it compulsory? | type | Introductions | Format requirements |
|---|---|---|---|---|
| info_list | yes | array | Additional information for merchandise |
Info_list definition
| parameter | Is it compulsory? | type | Introductions | Format requirements |
|---|---|---|---|---|
| unit_price | yes | uint32 | One day price | Units are divided |
| number | yes | uint32 | Number of days stayed |