|
@@ -46,25 +46,11 @@ type (
|
|
|
)
|
|
|
|
|
|
@server(
|
|
|
- jwt: Auth
|
|
|
group: category
|
|
|
- middleware: Authority
|
|
|
)
|
|
|
|
|
|
service Wechat {
|
|
|
- // Create category information | 创建Category
|
|
|
- @handler createCategory
|
|
|
- post /category/create (CategoryInfo) returns (BaseMsgResp)
|
|
|
-
|
|
|
- // Update category information | 更新Category
|
|
|
- @handler updateCategory
|
|
|
- post /category/update (CategoryInfo) returns (BaseMsgResp)
|
|
|
-
|
|
|
- // Delete category information | 删除Category信息
|
|
|
- @handler deleteCategory
|
|
|
- post /category/delete (IDsReq) returns (BaseMsgResp)
|
|
|
-
|
|
|
- // Get category list | 获取Category列表
|
|
|
+ // Get category list | 获取Category列表
|
|
|
@handler getCategoryList
|
|
|
post /category/list (CategoryListReq) returns (CategoryListResp)
|
|
|
|
|
@@ -72,3 +58,23 @@ service Wechat {
|
|
|
@handler getCategoryById
|
|
|
post /category (IDReq) returns (CategoryInfoResp)
|
|
|
}
|
|
|
+
|
|
|
+@server(
|
|
|
+ jwt: Auth
|
|
|
+ group: category
|
|
|
+ middleware: Authority
|
|
|
+)
|
|
|
+
|
|
|
+service Wechat {
|
|
|
+ // Create category information | 创建Category
|
|
|
+ @handler createCategory
|
|
|
+ post /category/create (CategoryInfo) returns (BaseMsgResp)
|
|
|
+
|
|
|
+ // Update category information | 更新Category
|
|
|
+ @handler updateCategory
|
|
|
+ post /category/update (CategoryInfo) returns (BaseMsgResp)
|
|
|
+
|
|
|
+ // Delete category information | 删除Category信息
|
|
|
+ @handler deleteCategory
|
|
|
+ post /category/delete (IDsReq) returns (BaseMsgResp)
|
|
|
+}
|