manager.proto 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. syntax = "proto3";
  2. package api.manager;
  3. import "google/api/annotations.proto";
  4. //import "google/protobuf/struct.proto";
  5. import "google/protobuf/empty.proto";
  6. import "api/common/common.proto";
  7. option go_package = "git.ikuban.com/server/pw-protobuf/api/manager;manager";
  8. option java_multiple_files = true;
  9. option java_package = "api.manager";
  10. service Manager {
  11. // 管理员查询用户列表
  12. rpc ManagerFindUserList (common.ManagerFindPersonListRequest) returns (common.ManagerFindPersonListReply){
  13. option (google.api.http) = {
  14. post: "/api/manager/user/list",
  15. body:"*"
  16. };
  17. };
  18. // 管理员查询完善过资料的用户列表
  19. rpc ManagerFindInformationUserList (common.ManagerFindPersonListRequest) returns (common.ManagerFindPersonListReply){
  20. option (google.api.http) = {
  21. post: "/api/manager/user/list/information",
  22. body:"*"
  23. };
  24. };
  25. // 管理员查询已审核过信息的列表
  26. rpc ManagerFindIsCheckQualityUserList (ManagerFindIsCheckQualityUserListRequest) returns (common.ManagerFindPersonListReply2){
  27. option (google.api.http) = {
  28. post: "/api/manager/user/list/ischeckquality",
  29. body:"*"
  30. };
  31. };
  32. // 管理员查询优质用户列表
  33. rpc ManagerFindHighQualityUserList (common.ManagerFindPersonListRequest) returns (common.ManagerFindPersonListReply){
  34. option (google.api.http) = {
  35. post: "/api/manager/quality/user/list",
  36. body:"*"
  37. };
  38. };
  39. // 管理员查询精选用户
  40. rpc ManagerFindCanHandpickUserList (common.ManagerFindCanHandpickUserListRequest) returns (common.ManagerFindCanHandpickUserListReply){
  41. option (google.api.http) = {
  42. post: "/api/manager/handpick/user/list",
  43. body:"*"
  44. };
  45. };
  46. // 管理员批量更新精选用户
  47. rpc ManagerSetHandpickUser (common.ManagerSetHandpickUserRequest) returns (google.protobuf.Empty){
  48. option (google.api.http) = {
  49. post: "/api/manager/handpick/user/set",
  50. body:"*"
  51. };
  52. };
  53. // 管理员更新单个精选用户
  54. rpc ManagerSetHandpickUserOne (common.ManagerSetHandpickUserOneRequest) returns (google.protobuf.Empty){
  55. option (google.api.http) = {
  56. post: "/api/manager/handpick/user/set/one",
  57. body:"*"
  58. };
  59. };
  60. // 管理员标记优质用户
  61. rpc ManagerMarkHighQualityUser (ManagerMarkHighQualityUserRequest) returns (google.protobuf.Empty){
  62. option (google.api.http) = {
  63. post: "/api/manager/quality/user/set",
  64. body:"*"
  65. };
  66. };
  67. // 管理员批量取消标记优质用户
  68. rpc ManagerReMarkHighQualityUser (ManagerReMarkHighQualityUserRequest) returns (google.protobuf.Empty){
  69. option (google.api.http) = {
  70. post: "/api/manager/quality/user/remark",
  71. body:"*"
  72. };
  73. };
  74. // 管理员标记单个优质用户
  75. rpc ManagerMarkHighQualityUserOne (common.PersonIDParam) returns (google.protobuf.Empty){
  76. option (google.api.http) = {
  77. post: "/api/manager/quality/user/set/one",
  78. body:"*"
  79. };
  80. };
  81. // 管理员批量拉黑用户
  82. rpc ManagerSetUserBlack (common.PersonIDList) returns (google.protobuf.Empty){
  83. option (google.api.http) = {
  84. post: "/api/manager/black/user/more",
  85. body:"*"
  86. };
  87. };
  88. // 管理员取消标记优质用户
  89. rpc ManagerDeleteHighQualityUser (common.PersonIDParam) returns (google.protobuf.Empty){
  90. option (google.api.http) = {
  91. post: "/api/manager/quality/user/delete",
  92. body:"*"
  93. };
  94. };
  95. // 管理员更新用户性别
  96. rpc ManagerUpdateUserSex (ManagerUpdateUserSexRequest) returns (google.protobuf.Empty){
  97. option (google.api.http) = {
  98. post: "/api/manager/user/sex/update",
  99. body:"*"
  100. };
  101. };
  102. // 管理员更新用户语音
  103. rpc ManagerUpdateUserVoice (common.ManagerUpdatePersonVoiceRequest) returns (google.protobuf.Empty){
  104. option (google.api.http) = {
  105. post: "/api/manager/user/Voice/update",
  106. body:"*"
  107. };
  108. };
  109. // 管理员更新用户相册
  110. rpc ManagerUpdateUserPictures (common.ManagerUpdatePersonPicturesRequest) returns (google.protobuf.Empty){
  111. option (google.api.http) = {
  112. post: "/api/manager/user/pictures/update",
  113. body:"*"
  114. };
  115. };
  116. // 管理员更新用户签名
  117. rpc ManagerUpdateUserSignature (common.ManagerUpdatePersonSignatureRequest) returns (google.protobuf.Empty){
  118. option (google.api.http) = {
  119. post: "/api/manager/user/signature/update",
  120. body:"*"
  121. };
  122. };
  123. // 管理员更新用户头像
  124. rpc ManagerUpdateUserAvatar (common.ManagerUpdatePersonAvatarRequest) returns (google.protobuf.Empty){
  125. option (google.api.http) = {
  126. post: "/api/manager/user/avatar/update",
  127. body:"*"
  128. };
  129. };
  130. // 管理员更新用户昵称
  131. rpc ManagerUpdateUserName (common.ManagerUpdatePersonNameRequest) returns (google.protobuf.Empty){
  132. option (google.api.http) = {
  133. post: "/api/manager/user/name/update",
  134. body:"*"
  135. };
  136. };
  137. // 管理员更新用户权重
  138. rpc ManagerUpdateUserWeight (common.ManagerUpdatePersonWeightRequest) returns (google.protobuf.Empty){
  139. option (google.api.http) = {
  140. post: "/api/manager/user/weight/update",
  141. body:"*"
  142. };
  143. };
  144. // 管理员更新用户是否拉黑
  145. rpc ManagerUpdateUserIsBlack (common.ManagerUpdatePersonIsBlackRequest) returns (google.protobuf.Empty){
  146. option (google.api.http) = {
  147. post: "/api/manager/user/black/update",
  148. body:"*"
  149. };
  150. };
  151. // 管理员增加用户积分
  152. rpc ManagerUpdateUserCredit (ManagerUpdateUserCreditRequest) returns (google.protobuf.Empty){
  153. option (google.api.http) = {
  154. post: "/api/manager/user/credit/add",
  155. body:"*"
  156. };
  157. };
  158. // 管理员登录
  159. rpc ManagerLogin (common.ManagerLoginRequest) returns (common.LoginToken){
  160. option (google.api.http) = {
  161. post: "/api/manager/login",
  162. body:"*"
  163. };
  164. };
  165. // 当前在线人
  166. rpc OnlinePerson (google.protobuf.Empty) returns (OnlinePersonReply){
  167. option (google.api.http) = {
  168. post: "/api/manager/online/person",
  169. body:"*"
  170. };
  171. };
  172. // 管理员查询房间列表
  173. rpc ManagerFindRoomList (common.ManagerFindRoomListRequest) returns (common.ManagerFindRoomListReply){
  174. option (google.api.http) = {
  175. post: "/api/manager/room/list",
  176. body:"*"
  177. };
  178. };
  179. // 管理员查询聊天记录
  180. rpc ManagerFindChatRecordList (common.ManagerFindChatRecordListRequest) returns (common.ChatRecordListReply){
  181. option (google.api.http) = {
  182. post: "/api/manager/chat/list",
  183. body:"*"
  184. };
  185. };
  186. // 管理员查询纸条列表
  187. rpc ManagerFindScripList (common.ManagerFindScripListRequest) returns (common.ManagerScripReply){
  188. option (google.api.http) = {
  189. post: "/api/manager/scrip/list",
  190. body:"*"
  191. };
  192. };
  193. // 管理员查询纸条列表
  194. rpc ManagerFindScripListV2 (common.ManagerFindScripListV2Request) returns (common.ManagerScripV2Reply){
  195. option (google.api.http) = {
  196. post: "/api/manager/scrip/list/v2",
  197. body:"*"
  198. };
  199. };
  200. // 管理员更新纸条文字
  201. rpc ManagerUpdateScripText (common.ManagerUpdateScripTextRequest) returns (google.protobuf.Empty){
  202. option (google.api.http) = {
  203. post: "/api/manager/update/scrip/text",
  204. body:"*"
  205. };
  206. };
  207. // 管理员更新纸条图片
  208. rpc ManagerUpdateScripPicture (common.ManagerUpdateScripPictureRequest) returns (google.protobuf.Empty){
  209. option (google.api.http) = {
  210. post: "/api/manager/update/scrip/picture",
  211. body:"*"
  212. };
  213. };
  214. // 管理员删除纸条
  215. rpc ManagerDeleteScrip (common.IDParam) returns (google.protobuf.Empty){
  216. option (google.api.http) = {
  217. post: "/api/manager/delete/scrip",
  218. body:"*"
  219. };
  220. };
  221. // 管理员批量删除纸条
  222. rpc ManagerDeleteScripMore (common.Ids) returns (google.protobuf.Empty){
  223. option (google.api.http) = {
  224. post: "/api/manager/delete/scrip/more",
  225. body:"*"
  226. };
  227. };
  228. // 管理员查询举报列表
  229. rpc ManagerFindReportList (common.ManagerFindReportListRequest) returns (common.ManagerFindReportListReply){
  230. option (google.api.http) = {
  231. post: "/api/manager/report/list",
  232. body:"*"
  233. };
  234. };
  235. // 管理员查询某个举报者的举报详情列表
  236. rpc ManagerFindReportDetailsList (common.ManagerFindReportDetailsListRequest) returns (common.ManagerFindReportDetailsListReply){
  237. option (google.api.http) = {
  238. post: "/api/manager/report/details/list",
  239. body:"*"
  240. };
  241. };
  242. }
  243. message ManagerUpdateUserSexRequest{
  244. int64 userId = 1;
  245. int64 sex = 2;
  246. }
  247. message ManagerFindIsCheckQualityUserListRequest{
  248. int64 page = 1;
  249. int64 pageSize = 2;
  250. int64 id = 3;// 用户ID
  251. string name = 4;// 姓名
  252. int64 sex = 5; // 性别
  253. }
  254. message ManagerUpdateUserCreditRequest{
  255. string personId = 1;
  256. int64 num = 2;
  257. string title = 3;
  258. }
  259. message ManagerMarkHighQualityUserRequest{
  260. repeated string passIds = 1;
  261. repeated string unPassIds = 2;
  262. }
  263. message ManagerReMarkHighQualityUserRequest{
  264. repeated string userIds = 1;
  265. }
  266. message OnlinePersonReply{
  267. int64 userManNum = 1; // 男用户在线数
  268. int64 userWomanNum = 2; // 女用户在线数
  269. int64 userOtherNum = 3; // 未填写性别的用户在线数
  270. }