方法列表
创建分类
admin
RPC
createPostCategory (CreatePostCategoryRequest) returns (CreatePostCategoryResponse)
HTTP
POST /PostCategoryService/createPostCategory
输入对象:CreatePostCategoryRequest:
{ // 分类名称 string name; // 分类代号 string code; }
输出对象:CreatePostCategoryResponse:
{ // 分类ID int64 postCategoryId; }
修改分类
admin
RPC
updatePostCategory (UpdatePostCategoryRequest) returns (RPCSuccess)
HTTP
POST /PostCategoryService/updatePostCategory
输入对象:UpdatePostCategoryRequest:
{ // 分类ID int64 postCategoryId; // 分类名称 string name; // 分类代号 string code; // 是否启用 bool isOn; }
输出对象:RPCSuccess:
{ }
删除分类
admin
RPC
deletePostCategory (DeletePostCategoryRequest) returns (RPCSuccess)
HTTP
POST /PostCategoryService/deletePostCategory
输入对象:DeletePostCategoryRequest:
{ // 分类ID int64 postCategoryId; }
输出对象:RPCSuccess:
{ }
列出所有分类
admin
RPC
findAllPostCategories (FindAllPostCategoriesRequest) returns (FindAllPostCategoriesResponse)
HTTP
POST /PostCategoryService/findAllPostCategories
输入对象:FindAllPostCategoriesRequest:
{ }
输出对象:FindAllPostCategoriesResponse:
{ // 分类列表 []PostCategory postCategories; }
查询单个分类
admin
RPC
findPostCategory (FindPostCategoryRequest) returns (FindPostCategoryResponse)
HTTP
POST /PostCategoryService/findPostCategory
输入对象:FindPostCategoryRequest:
{ // 分类ID int64 postCategoryId; }
输出对象:FindPostCategoryResponse:
{ // 分类信息 PostCategory postCategory; }
对分类进行排序
admin
RPC
sortPostCategories (SortPostCategoriesRequest) returns (RPCSuccess)
HTTP
POST /PostCategoryService/sortPostCategories
输入对象:SortPostCategoriesRequest:
{ // 分类ID列表 []int64 postCategoryIds; }
输出对象:RPCSuccess:
{ }