| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- syntax = "proto3";
- import "public.proto";
- package group;
- /*
- * Group/群组 服务
- */
- service Group{
- rpc GetGroupListForStudio (GroupListRequest) returns (GroupListReply){}
- rpc GetGroup (GroupRequest) returns (GroupReply){}
- rpc SetGroup (GroupRequest) returns (GroupReply){}
- rpc AddGroup (GroupRequest) returns (GroupReply){}
- rpc DelGroup (GroupRequest) returns (GroupReply){}
- rpc AddMember (User) returns (MemberReply){}
- rpc RemoveMember (User) returns (MemberReply){}
- rpc GetMemberListForGroup (GroupListRequest) returns (GroupMemberListReply){}
- }
- message GroupListRequest{
- string Id = 1;
- string Search = 3;
- EnumAllowingSearch SearchCol = 4;
- int32 CurrentPage = 5; //current page number
- int32 PageSize = 6; //The number of items to be shown per page.
- EnumAllowingOrderby OrderBy = 7;
- bool Desc = 8;
- }
- enum EnumAllowingSearch{
- EAS_NAME = 0;
- }
- enum EnumAllowingOrderby{
- EAO_CREATE_AT = 0;
- EAO_NAME = 1;
- }
- message GroupRequest{
- string Id = 1;
- string Name = 2;
- string Summary = 3;
- string StudioId = 5;
- string EditorId = 52;
- EnumPublicity Publicity = 53;
- string CreatedAt = 101;
- string UpdatedAt = 102;
- }
- message GroupReply{
- bool ok = 1;
- string message = 2;
- GroupRequest data = 3;
- }
- message GroupListReply{
- bool ok = 1;
- string message = 2;
- message data{
- repeated GroupRequest rows = 1;
- int32 Count = 2;
- int32 PageNo = 3;
- int32 PageSize = 4;
- }
- }
- message MemberReply{
- bool ok = 1;
- string message = 2;
- User data = 3;
- }
- message GroupMemberListReply{
- bool ok = 1;
- string message = 2;
- message data{
- repeated User rows = 1;
- }
- }
|