[sheet-service] update redis subscribe channel /price, /add/price, /update/price, /delete/price
This commit is contained in:
parent
2612d33eb2
commit
4ea9aa77e5
2 changed files with 325 additions and 10 deletions
28
README.md
28
README.md
|
|
@ -70,4 +70,32 @@ PUBLISH sheet-service/delete/menu '{"type": "sheet","payload": {"user_info": {"u
|
|||
|
||||
```
|
||||
PUBLISH sheet-service/swap/menu '{"type": "sheet","payload": {"user_info": {"uid": "xxxxxxxxxxxxxxxxxxxxxxxxxx"},"srv_name": "sheet-service","values": {"country": "tha","catalog":"page_catalog_group_coffee.skt","content": [{ "target_id": 1, "source_id": 9 },{ "target_id": 5, "source_id": 1 },{ "target_id": 9, "source_id": 5 }]}}}'
|
||||
```
|
||||
|
||||
## PUBLISH sheet-service/price
|
||||
### Get price payload by productCode
|
||||
|
||||
```
|
||||
PUBLISH sheet-service/price '{"type": "sheet","payload": {"user_info": {"uid": "xxxxxxxxxxxxxxxxxxxxxxxxxx"},"srv_name": "sheet-service","values": {"country": "tha","content": [{"product_code": "12-99-02-99"}, {"product_code": "12-01-01-0009"}]}}}'
|
||||
```
|
||||
|
||||
## PUBLISH sheet-service/add/price
|
||||
### Add price row
|
||||
|
||||
```
|
||||
PUBLISH sheet-service/add/price '{"type": "sheet","payload": {"user_info": {"uid": "xxxxxxxxxxxxxxxxxxxxxxxxxx"},"srv_name": "sheet-service","values": {"country": "tha","content": [{"cells":["12-99-02-99", "Pepsi Ume Cookie Smoothie", "เต่าทรงพลังสตรอเบอรีโซดา", "", "25", ""]},{"cells":["12-01-01-0009", "HOT TAIWANESE TEACAFÉ LATTE", "", "", "", "40"]}]}}}'
|
||||
```
|
||||
|
||||
## PUBLISH sheet-service/update/price
|
||||
### Update data in price rows
|
||||
|
||||
```
|
||||
PUBLISH sheet-service/update/price '{"type": "sheet","payload": {"user_info": {"uid": "xxxxxxxxxxxxxxxxxxxxxxxxxx"},"srv_name": "sheet-service","values": {"country": "tha","content": [{"row_index": 1474,"cells": [{"value": "test update","coord": {"row": 1474,"col": 2}}, {"value": "zx","coord": {"row": 1474,"col": 3}}]},{"row_index": 1475,"cells": [{"value": "not taiwan","coord": {"row": 1475,"col": 2}}]}]}}}'
|
||||
```
|
||||
|
||||
## PUBLISH sheet-service/delete/price
|
||||
### Delete price row
|
||||
|
||||
```
|
||||
PUBLISH sheet-service/delete/price '{"type": "sheet","payload": {"user_info": {"uid": "xxxxxxxxxxxxxxxxxxxxxxxxxx"},"srv_name": "sheet-service","values": {"country": "tha","content": [{"target_id":1474}, {"target_id":1475}]}}}'
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue