From 1b2e5ef95df1ff6f2333340e981a5cd8023e801c Mon Sep 17 00:00:00 2001 From: Phodal Huang Date: Tue, 17 Dec 2019 08:09:48 +0800 Subject: [PATCH] docs: update examples for api --- README.md | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index be3241c..e101349 100644 --- a/README.md +++ b/README.md @@ -124,19 +124,24 @@ With Count coca api -p . -d deps.json -c true -r com.macro.mall. ``` -``` -+------+------------------------------------------------+------------------------------------------------------------------------+ -| SIZE | API | CALLER | -+------+------------------------------------------------+------------------------------------------------------------------------+ -| 17 | GET /returnReason/list | controller.OmsOrderReturnReasonController.list | -| 17 | GET /returnApply/list | controller.OmsOrderReturnApplyController.list | -| 17 | GET /order/list | controller.OmsOrderController.list | -| 17 | GET /subject/list | controller.CmsSubjectController.getList | -| 17 | GET /esProduct/search/simple | search.controller.EsProductController.search | -| 17 | GET /flash/{id} | controller.SmsFlashPromotionController.getItem | -| 21 | POST /aliyun/osscallback | controller.OssController.callback | -| 36 | GET /aliyun/oss/policy | controller.OssController.policy | -+------+------------------------------------------------+------------------------------------------------------------------------+ +or multi package: + +`coca.go api -p examples -d deps.json -r com.macro.mall.demo.controller.,com.zheng.cms.admin.,com.phodal.pholedge -c` + +``` ++------+--------+------------------------------------------------+------------------------------------------------------------------------+ +| SIZE | METHOD | URI | CALLER | ++------+--------+------------------------------------------------+------------------------------------------------------------------------+ +| 36 | GET | /aliyun/oss/policy | controller.OssController.policy | +| 21 | POST | /aliyun/osscallback | controller.OssController.callback | +| 17 | GET | /subject/list | controller.CmsSubjectController.getList | +| 17 | GET | /esProduct/search | search.controller.EsProductController.search | +| 17 | GET | /order/list | controller.OmsOrderController.list | +| 17 | GET | /productAttribute/list/{cid} | controller.PmsProductAttributeController.getList | +| 17 | GET | /productCategory/list/{parentId} | controller.PmsProductCategoryController.getList | +| 17 | GET | /brand/list | controller.PmsBrandController.getList | +| 17 | GET | /esProduct/search/simple | search.controller.EsProductController.search | ++------+--------+------------------------------------------------+------------------------------------------------------------------------+ ``` ### Git Analysis -- GitLab