# 1004 Menu Waiting Service Dynamics
# 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_count | Reference status requirements | uint32 | Quantity of goods | |
| product_list | Reference status requirements | object | Product Information | |
| queue_number | Reference status requirements | string | User Reservation Number | Up to 10 visible characters can be displayed and input |
| current_number | Reference status requirements | string | Current call number | A combination of numbers, letters and symbols is verified. |
| min_wait_time | Reference status requirements | uint32 | The lower expected waiting time limit. For display rules, refer to the "Display instructions for expected awaited time" section below | In units of seconds |
| max_wait_time | Reference status requirements | uint32 | The maximum expected waiting time is for display rules to refer to the "Display instructions for expected sitting time" section below | In units of seconds |
Product_list definition
| parameter | Is it compulsory? | type | Introductions | Format requirements |
|---|---|---|---|---|
| info_list | yes | array | Product Information |
Info_list definition
| parameter | Is it compulsory? | type | Introductions | Format requirements |
|---|---|---|---|---|
| product_img | yes | string | Image of the product | |
| product_name | yes | string | Product Name | |
| product_path_query | yes | string | Product path and query | |
| count | no | uint32 | Number of items, default 1 | |
| single_price | no | uint32 | Unit price of commodities | Units are divided |
Combined numbers, letters, and symbols verification
- Up to 32 visible characters
- All characters need to hit [A-Z] [a-z] [0-9] "_~ - /."
Examples: A101, 1234, a101, A-101
Estimated Wait Time Show Instructions
- If min_wait_time = max_wait_time: Estimated wait {max_wait_time / 60} minutes
- If max_wait_time = 0, the expected wait > {min_wait_time / 60} minutes
- If min_wait_time = 0, expect to wait < {max_wait_time / 60} minutes
- If min_wait_time = 0 & max_wait_time = 0, the expected waiting time cannot be given.No expected waiting time is shown to the user
# 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 | / | The user has paid | product_count product_list wxa_path_query | "{\"cur_status\":1,\"product_count\": 1,\"product_list\":{\"info_list\":[{\"product_img\": \"https://res.wx.qq.com/op_res/DiSd8fVjXuHr5K9U73oRr-0imv0GklZrlRRj_mZmbnO0jT349XT-qIzT_DmjQsDLSO3xZbUTbOP--HA_BosOoA\",\"product_name\":\"momo\",\"product_path_query\":\"pages/index/index\",\"count\": 1,\"single_price\": 111}]},\"wxa_path_query\":\"pages/index/index\"}" | |
| 2 | yes | 1, 2 | In Production | product_count product_list queue_number min_wait_time max_wait_time wxa_path_query | current_number | "{\"cur_status\":2,\"product_count\": 1,\"product_list\":{\"info_list\":[{\"product_img\": \"https://res.wx.qq.com/op_res/DiSd8fVjXuHr5K9U73oRr-0imv0GklZrlRRj_mZmbnO0jT349XT-qIzT_DmjQsDLSO3xZbUTbOP--HA_BosOoA\",\"product_name\":\"momo\",\"product_path_query\":\"pages/index/index\",\"count\": 1,\"single_price\": 111}]},\"queue_number\": \"S0121\",\"current_number\": \"S0101\",\"min_wait_time\": 600,\"max_wait_time\": 900,\"wxa_path_query\":\"pages/index/index\"}" |
| 3 | no | 2 | Please get it. | queue_number wxa_path_query | "{\"cur_status\":3,\"queue_number\": \"S0121\",\"wxa_path_query\":\"pages/index/index\"}" | |
| 4 | no | 1, 2, 3 | The transaction was successful. | queue_number wxa_path_query | "{\"cur_status\":4,\"queue_number\": \"S0121\",\"wxa_path_query\":\"pages/index/index\"}" | |
| 5 | no | 1, 2, 3 | Order cancelled | wxa_path_query | "{\"cur_status\":5,\"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 |
|---|---|---|---|---|
| pay_info | yes | object | Payment Information | |
| store_info | no | object | Store Information | |
| product_additional_list | yes | object | Item attachment, one-to-one correspondence with product_list sort |
Pay_info Definition
| parameter | Is it compulsory? | type | Introductions | Format requirements |
|---|---|---|---|---|
| transaction_id | yes | string | WeChat Payment Order Number For the combined payment scenario, only the order number passed in to the first suborder is currently supported | |
| pay_amount | yes | unit32 | The actual amount of the order, if the order has a discount, enter the amount after the discount If it is the first sub-order paid for by the combined order, enter the total actual amount paid for by the combined order | Units are divided |
| pay_time | yes | uint32 | Payment time | Second-level time stamp |
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 | Unit price of commodities | |
| number | yes | uint32 | Quantity of goods |