| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330 | syntax = "proto3";package api.manager;import "google/api/annotations.proto";//import "google/protobuf/struct.proto";import "google/protobuf/empty.proto";import "api/common/common.proto";import "api/websocket/websocket.proto";option go_package = "git.ikuban.com/server/pw-protobuf/api/manager;manager";option java_multiple_files = true;option java_package = "api.manager";service Manager {  // 管理员查询用户列表  rpc ManagerFindUserList (common.ManagerFindPersonListRequest) returns (common.ManagerFindPersonListReply){    option (google.api.http) = {      post: "/api/manager/user/list",      body:"*"    };  };  // 管理员查询完善过资料的用户列表  rpc ManagerFindInformationUserList (common.ManagerFindPersonListRequest) returns (common.ManagerFindPersonListReply){    option (google.api.http) = {      post: "/api/manager/user/list/information",      body:"*"    };  };  // 管理员查询已审核过信息的列表  rpc ManagerFindIsCheckQualityUserList (ManagerFindIsCheckQualityUserListRequest) returns (common.ManagerFindPersonListReply2){    option (google.api.http) = {      post: "/api/manager/user/list/ischeckquality",      body:"*"    };  };  // 管理员查询优质用户列表  rpc ManagerFindHighQualityUserList (common.ManagerFindPersonListRequest) returns (common.ManagerFindPersonListReply){    option (google.api.http) = {      post: "/api/manager/quality/user/list",      body:"*"    };  };  // 管理员查询精选用户  rpc ManagerFindCanHandpickUserList (common.ManagerFindCanHandpickUserListRequest) returns (common.ManagerFindCanHandpickUserListReply){    option (google.api.http) = {      post: "/api/manager/handpick/user/list",      body:"*"    };  };  // 管理员批量更新精选用户  rpc ManagerSetHandpickUser (common.ManagerSetHandpickUserRequest) returns (google.protobuf.Empty){    option (google.api.http) = {      post: "/api/manager/handpick/user/set",      body:"*"    };  };  // 管理员更新单个精选用户  rpc ManagerSetHandpickUserOne (common.ManagerSetHandpickUserOneRequest) returns (google.protobuf.Empty){    option (google.api.http) = {      post: "/api/manager/handpick/user/set/one",      body:"*"    };  };  // 管理员标记优质用户  rpc ManagerMarkHighQualityUser (ManagerMarkHighQualityUserRequest) returns (google.protobuf.Empty){    option (google.api.http) = {      post: "/api/manager/quality/user/set",      body:"*"    };  };  // 管理员批量取消标记优质用户  rpc ManagerReMarkHighQualityUser (ManagerReMarkHighQualityUserRequest) returns (google.protobuf.Empty){    option (google.api.http) = {      post: "/api/manager/quality/user/remark",      body:"*"    };  };  // 管理员标记单个优质用户  rpc ManagerMarkHighQualityUserOne (common.PersonIDParam) returns (google.protobuf.Empty){    option (google.api.http) = {      post: "/api/manager/quality/user/set/one",      body:"*"    };  };  // 管理员批量拉黑用户  rpc ManagerSetUserBlack (common.PersonIDList) returns (google.protobuf.Empty){    option (google.api.http) = {      post: "/api/manager/black/user/more",      body:"*"    };  };  // 管理员取消标记优质用户  rpc ManagerDeleteHighQualityUser (common.PersonIDParam) returns (google.protobuf.Empty){    option (google.api.http) = {      post: "/api/manager/quality/user/delete",      body:"*"    };  };  // 管理员更新用户性别  rpc ManagerUpdateUserSex (ManagerUpdateUserSexRequest) returns (google.protobuf.Empty){    option (google.api.http) = {      post: "/api/manager/user/sex/update",      body:"*"    };  };  // 管理员更新用户语音  rpc ManagerUpdateUserVoice (common.ManagerUpdatePersonVoiceRequest) returns (google.protobuf.Empty){    option (google.api.http) = {      post: "/api/manager/user/Voice/update",      body:"*"    };  };  // 管理员更新用户相册  rpc ManagerUpdateUserPictures (common.ManagerUpdatePersonPicturesRequest) returns (google.protobuf.Empty){    option (google.api.http) = {      post: "/api/manager/user/pictures/update",      body:"*"    };  };  // 管理员更新用户签名  rpc ManagerUpdateUserSignature (common.ManagerUpdatePersonSignatureRequest) returns (google.protobuf.Empty){    option (google.api.http) = {      post: "/api/manager/user/signature/update",      body:"*"    };  };  // 管理员更新用户头像  rpc ManagerUpdateUserAvatar (common.ManagerUpdatePersonAvatarRequest) returns (google.protobuf.Empty){    option (google.api.http) = {      post: "/api/manager/user/avatar/update",      body:"*"    };  };  // 管理员更新用户昵称  rpc ManagerUpdateUserName (common.ManagerUpdatePersonNameRequest) returns (google.protobuf.Empty){    option (google.api.http) = {      post: "/api/manager/user/name/update",      body:"*"    };  };  // 管理员更新用户权重  rpc ManagerUpdateUserWeight (common.ManagerUpdatePersonWeightRequest) returns (google.protobuf.Empty){    option (google.api.http) = {      post: "/api/manager/user/weight/update",      body:"*"    };  };  // 管理员更新用户是否拉黑  rpc ManagerUpdateUserIsBlack (common.ManagerUpdatePersonIsBlackRequest) returns (google.protobuf.Empty){    option (google.api.http) = {      post: "/api/manager/user/black/update",      body:"*"    };  };  // 管理员增加用户积分  rpc ManagerUpdateUserCredit (ManagerUpdateUserCreditRequest) returns (google.protobuf.Empty){    option (google.api.http) = {      post: "/api/manager/user/credit/add",      body:"*"    };  };  // 管理员登录  rpc ManagerLogin (common.ManagerLoginRequest) returns (common.LoginToken){    option (google.api.http) = {      post: "/api/manager/login",      body:"*"    };  };  // 当前在线人  rpc OnlinePerson (google.protobuf.Empty) returns (OnlinePersonReply){    option (google.api.http) = {      post: "/api/manager/online/person",      body:"*"    };  };  // 管理员查询房间列表  rpc ManagerFindRoomList (common.ManagerFindRoomListRequest) returns (common.ManagerFindRoomListReply){    option (google.api.http) = {      post: "/api/manager/room/list",      body:"*"    };  };  // 管理员查询聊天记录  rpc ManagerFindChatRecordList (common.ManagerFindChatRecordListRequest) returns (common.ChatRecordListReply){    option (google.api.http) = {      post: "/api/manager/chat/list",      body:"*"    };  };  // 管理员查询纸条列表  rpc ManagerFindScripList (common.ManagerFindScripListRequest) returns (common.ManagerScripReply){    option (google.api.http) = {      post: "/api/manager/scrip/list",      body:"*"    };  };  // 管理员查询纸条列表  rpc ManagerFindScripListV2 (common.ManagerFindScripListV2Request) returns (common.ManagerScripV2Reply){    option (google.api.http) = {      post: "/api/manager/scrip/list/v2",      body:"*"    };  };  // 管理员更新纸条文字  rpc ManagerUpdateScripText (common.ManagerUpdateScripTextRequest) returns (google.protobuf.Empty){    option (google.api.http) = {      post: "/api/manager/update/scrip/text",      body:"*"    };  };  // 管理员更新纸条图片  rpc ManagerUpdateScripPicture (common.ManagerUpdateScripPictureRequest) returns (google.protobuf.Empty){    option (google.api.http) = {      post: "/api/manager/update/scrip/picture",      body:"*"    };  };  // 管理员删除纸条  rpc ManagerDeleteScrip (common.IDParam) returns (google.protobuf.Empty){    option (google.api.http) = {      post: "/api/manager/delete/scrip",      body:"*"    };  };  // 管理员批量删除纸条  rpc ManagerDeleteScripMore (common.Ids) returns (google.protobuf.Empty){    option (google.api.http) = {      post: "/api/manager/delete/scrip/more",      body:"*"    };  };  // 管理员查询举报列表  rpc ManagerFindReportList (common.ManagerFindReportListRequest) returns (common.ManagerFindReportListReply){    option (google.api.http) = {      post: "/api/manager/report/list",      body:"*"    };  };  // 管理员查询某个举报者的举报详情列表  rpc ManagerFindReportDetailsList (common.ManagerFindReportDetailsListRequest) returns (common.ManagerFindReportDetailsListReply){    option (google.api.http) = {      post: "/api/manager/report/details/list",      body:"*"    };  };  // 查询在线人数  rpc FindOnlinePerson (FindOnlinePersonRequest) returns (websocket.FindOnlinePersonReply){    option (google.api.http) = {      post: "/api/manager/online/details/list",      body:"*"    };  };  // 管理员注销用户  rpc ManagerUserUnsubscribe (ManagerUserUnsubscribeRequest) returns (google.protobuf.Empty){    option (google.api.http) = {      post: "/api/manager/user/unsubscribe",      body:"*"    };  };  // 查询在线可匹配人数  rpc FindOnlineCanMatchingPerson (google.protobuf.Empty) returns (websocket.FindOnlineCanMatchingPersonReply){    option (google.api.http) = {      post: "/api/manager/user/matching/list",      body:"*"    };  };  // 管理员增加黑名单图片  rpc ManagerAddBlackPicture (ManagerAddBlackPictureRequest) returns (google.protobuf.Empty){    option (google.api.http) = {      post: "/api/manager/black/picture/add",      body:"*"    };  };  // 管理员增加黑名单图片  rpc SendWebsocketMsg (common.PersonIDParam) returns (websocket.SendMsgReply){    option (google.api.http) = {      post: "/api/manager/websocket/send",      body:"*"    };  };}message ManagerAddBlackPictureRequest{  string pictureUrl = 1;}message ManagerUserUnsubscribeRequest{  int64 userId = 1;}message FindOnlinePersonRequest{  bool isFindAll = 1;}message ManagerUpdateUserSexRequest{  int64 userId = 1;  int64 sex = 2;}message ManagerFindIsCheckQualityUserListRequest{  int64 page = 1;  int64 pageSize = 2;  int64 id = 3;// 用户ID  string name = 4;// 姓名  int64 sex = 5; // 性别}message ManagerUpdateUserCreditRequest{  string personId = 1;  int64 num = 2;  string title = 3;}message ManagerMarkHighQualityUserRequest{  repeated string passIds = 1;  repeated string unPassIds = 2;}message ManagerReMarkHighQualityUserRequest{  repeated string userIds = 1;}message OnlinePersonReply{  int64 userManNum = 1; // 男用户在线数  int64 userWomanNum = 2; // 女用户在线数  int64 userOtherNum = 3; // 未填写性别的用户在线数}
 |