article_category.proto 1.1 KB

syntax = "proto3";

option go_package ="./pb";

package pb;

message ArticleCategoryGetReq {
   int64 Id = 1;
}
message ArticleCategoryGetResp{
    ArticleCategoryItem User = 1;
}

message ArticleCategorySaveReq {

}
message ArticleCategorySaveResp{

}

message ArticleCategoryDeleteReq {
  int64 Id = 1;
}
message ArticleCategoryDeleteResp{

}

message ArticleCategoryUpdateReq {
  int64 Id = 1;
}
message ArticleCategoryUpdateResp{

}

message ArticleCategorySearchReq {
  int64 PageNumber = 1;
  int64 PageSize = 2;
}
message ArticleCategorySearchResp{
  repeated ArticleCategoryItem List =1;
  int64  Total =2;
}
message ArticleCategoryItem {

}

service ArticleCategoryService {
  rpc ArticleCategoryGet(ArticleCategoryGetReq) returns(ArticleCategoryGetResp);
  rpc ArticleCategorySave(ArticleCategorySaveReq) returns(ArticleCategorySaveResp);
  rpc ArticleCategoryDelete(ArticleCategoryDeleteReq) returns(ArticleCategoryDeleteResp);
  rpc ArticleCategoryUpdate(ArticleCategoryUpdateReq) returns(ArticleCategoryUpdateResp);
  rpc ArticleCategorySearch(ArticleCategorySearchReq) returns(ArticleCategorySearchResp);
}