cyymall-cli 0.1.9 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -1
- package/package.json +1 -1
- package/src/cli.js +353 -273
- package/src/commands/cart.js +89 -51
- package/src/commands/order.js +618 -375
- package/src/commands/product.js +175 -52
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
# cyymall-cli (`cyy`)
|
|
2
2
|
|
|
3
3
|
Node.js CLI for CyyMall / 菜洋洋商城 APIs. Spec: [`../app-api-cli-spec.md`](../app-api-cli-spec.md).
|
|
4
4
|
|
|
@@ -64,6 +64,10 @@ cyy shop sites --shop-id <门店ID>
|
|
|
64
64
|
cyy shop use --shop-id <门店ID>
|
|
65
65
|
cyy shop use-site --site-id <站点ID>
|
|
66
66
|
cyy product search --keyword 牛奶
|
|
67
|
+
cyy product category-list
|
|
68
|
+
cyy product zone-tags --group-id <二级分组id>
|
|
69
|
+
cyy product category-skus --group-id <同上> [--zone-key <k>] [--after-key <k>]
|
|
70
|
+
cyy product skus-by-category --group-id <同上>
|
|
67
71
|
cyy api call --method POST --module PRODUCT --path /app/product/getSkuList --body-file body.json
|
|
68
72
|
cyy order quick --keyword 牛奶 --quantity 1 --unit 袋
|
|
69
73
|
cyy serve --port 8787
|