manager.proto 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409
  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. import "api/websocket/websocket.proto";
  8. option go_package = "git.ikuban.com/server/pw-protobuf/api/manager;manager";
  9. option java_multiple_files = true;
  10. option java_package = "api.manager";
  11. service Manager {
  12. // 管理员查询用户列表
  13. rpc ManagerFindUserList (common.ManagerFindPersonListRequest) returns (common.ManagerFindPersonListReply){
  14. option (google.api.http) = {
  15. post: "/api/manager/user/list",
  16. body:"*"
  17. };
  18. };
  19. // 管理员查询完善过资料的用户列表
  20. rpc ManagerFindInformationUserList (common.ManagerFindPersonListRequest) returns (common.ManagerFindPersonListReply){
  21. option (google.api.http) = {
  22. post: "/api/manager/user/list/information",
  23. body:"*"
  24. };
  25. };
  26. // 管理员查询已审核过信息的列表
  27. rpc ManagerFindIsCheckQualityUserList (ManagerFindIsCheckQualityUserListRequest) returns (common.ManagerFindPersonListReply2){
  28. option (google.api.http) = {
  29. post: "/api/manager/user/list/ischeckquality",
  30. body:"*"
  31. };
  32. };
  33. // 管理员查询优质用户列表
  34. rpc ManagerFindHighQualityUserList (common.ManagerFindPersonListRequest) returns (common.ManagerFindPersonListReply){
  35. option (google.api.http) = {
  36. post: "/api/manager/quality/user/list",
  37. body:"*"
  38. };
  39. };
  40. // 管理员查询精选用户
  41. rpc ManagerFindCanHandpickUserList (common.ManagerFindCanHandpickUserListRequest) returns (common.ManagerFindCanHandpickUserListReply){
  42. option (google.api.http) = {
  43. post: "/api/manager/handpick/user/list",
  44. body:"*"
  45. };
  46. };
  47. // 管理员批量更新精选用户
  48. rpc ManagerSetHandpickUser (common.ManagerSetHandpickUserRequest) returns (google.protobuf.Empty){
  49. option (google.api.http) = {
  50. post: "/api/manager/handpick/user/set",
  51. body:"*"
  52. };
  53. };
  54. // 管理员更新单个精选用户
  55. rpc ManagerSetHandpickUserOne (common.ManagerSetHandpickUserOneRequest) returns (google.protobuf.Empty){
  56. option (google.api.http) = {
  57. post: "/api/manager/handpick/user/set/one",
  58. body:"*"
  59. };
  60. };
  61. // 管理员标记优质用户
  62. rpc ManagerMarkHighQualityUser (ManagerMarkHighQualityUserRequest) returns (google.protobuf.Empty){
  63. option (google.api.http) = {
  64. post: "/api/manager/quality/user/set",
  65. body:"*"
  66. };
  67. };
  68. // 管理员批量取消标记优质用户
  69. rpc ManagerReMarkHighQualityUser (ManagerReMarkHighQualityUserRequest) returns (google.protobuf.Empty){
  70. option (google.api.http) = {
  71. post: "/api/manager/quality/user/remark",
  72. body:"*"
  73. };
  74. };
  75. // 管理员标记单个优质用户
  76. rpc ManagerMarkHighQualityUserOne (common.PersonIDParam) returns (google.protobuf.Empty){
  77. option (google.api.http) = {
  78. post: "/api/manager/quality/user/set/one",
  79. body:"*"
  80. };
  81. };
  82. // 管理员批量拉黑用户
  83. rpc ManagerSetUserBlack (common.PersonIDList) returns (google.protobuf.Empty){
  84. option (google.api.http) = {
  85. post: "/api/manager/black/user/more",
  86. body:"*"
  87. };
  88. };
  89. // 管理员取消标记优质用户
  90. rpc ManagerDeleteHighQualityUser (common.PersonIDParam) returns (google.protobuf.Empty){
  91. option (google.api.http) = {
  92. post: "/api/manager/quality/user/delete",
  93. body:"*"
  94. };
  95. };
  96. // 管理员更新用户性别
  97. rpc ManagerUpdateUserSex (ManagerUpdateUserSexRequest) returns (google.protobuf.Empty){
  98. option (google.api.http) = {
  99. post: "/api/manager/user/sex/update",
  100. body:"*"
  101. };
  102. };
  103. // 管理员更新用户语音
  104. rpc ManagerUpdateUserVoice (common.ManagerUpdatePersonVoiceRequest) returns (google.protobuf.Empty){
  105. option (google.api.http) = {
  106. post: "/api/manager/user/Voice/update",
  107. body:"*"
  108. };
  109. };
  110. // 管理员更新用户相册
  111. rpc ManagerUpdateUserPictures (common.ManagerUpdatePersonPicturesRequest) returns (google.protobuf.Empty){
  112. option (google.api.http) = {
  113. post: "/api/manager/user/pictures/update",
  114. body:"*"
  115. };
  116. };
  117. // 管理员更新用户签名
  118. rpc ManagerUpdateUserSignature (common.ManagerUpdatePersonSignatureRequest) returns (google.protobuf.Empty){
  119. option (google.api.http) = {
  120. post: "/api/manager/user/signature/update",
  121. body:"*"
  122. };
  123. };
  124. // 管理员更新用户头像
  125. rpc ManagerUpdateUserAvatar (common.ManagerUpdatePersonAvatarRequest) returns (google.protobuf.Empty){
  126. option (google.api.http) = {
  127. post: "/api/manager/user/avatar/update",
  128. body:"*"
  129. };
  130. };
  131. // 管理员更新用户昵称
  132. rpc ManagerUpdateUserName (common.ManagerUpdatePersonNameRequest) returns (google.protobuf.Empty){
  133. option (google.api.http) = {
  134. post: "/api/manager/user/name/update",
  135. body:"*"
  136. };
  137. };
  138. // 管理员更新用户权重
  139. rpc ManagerUpdateUserWeight (common.ManagerUpdatePersonWeightRequest) returns (google.protobuf.Empty){
  140. option (google.api.http) = {
  141. post: "/api/manager/user/weight/update",
  142. body:"*"
  143. };
  144. };
  145. // 管理员更新用户是否拉黑
  146. rpc ManagerUpdateUserIsBlack (common.ManagerUpdatePersonIsBlackRequest) returns (google.protobuf.Empty){
  147. option (google.api.http) = {
  148. post: "/api/manager/user/black/update",
  149. body:"*"
  150. };
  151. };
  152. // 管理员增加用户积分
  153. rpc ManagerUpdateUserCredit (ManagerUpdateUserCreditRequest) returns (google.protobuf.Empty){
  154. option (google.api.http) = {
  155. post: "/api/manager/user/credit/add",
  156. body:"*"
  157. };
  158. };
  159. // 管理员登录
  160. rpc ManagerLogin (common.ManagerLoginRequest) returns (common.LoginToken){
  161. option (google.api.http) = {
  162. post: "/api/manager/login",
  163. body:"*"
  164. };
  165. };
  166. // 当前在线人
  167. rpc OnlinePerson (google.protobuf.Empty) returns (OnlinePersonReply){
  168. option (google.api.http) = {
  169. post: "/api/manager/online/person",
  170. body:"*"
  171. };
  172. };
  173. // 管理员查询房间列表
  174. rpc ManagerFindRoomList (common.ManagerFindRoomListRequest) returns (common.ManagerFindRoomListReply){
  175. option (google.api.http) = {
  176. post: "/api/manager/room/list",
  177. body:"*"
  178. };
  179. };
  180. // 管理员查询聊天记录
  181. rpc ManagerFindChatRecordList (common.ManagerFindChatRecordListRequest) returns (common.ChatRecordListReply){
  182. option (google.api.http) = {
  183. post: "/api/manager/chat/list",
  184. body:"*"
  185. };
  186. };
  187. // 管理员查询纸条列表
  188. rpc ManagerFindScripList (common.ManagerFindScripListRequest) returns (common.ManagerScripReply){
  189. option (google.api.http) = {
  190. post: "/api/manager/scrip/list",
  191. body:"*"
  192. };
  193. };
  194. // 管理员查询纸条列表
  195. rpc ManagerFindScripListV2 (common.ManagerFindScripListV2Request) returns (common.ManagerScripV2Reply){
  196. option (google.api.http) = {
  197. post: "/api/manager/scrip/list/v2",
  198. body:"*"
  199. };
  200. };
  201. // 管理员更新纸条文字
  202. rpc ManagerUpdateScripText (common.ManagerUpdateScripTextRequest) returns (google.protobuf.Empty){
  203. option (google.api.http) = {
  204. post: "/api/manager/update/scrip/text",
  205. body:"*"
  206. };
  207. };
  208. // 管理员更新纸条图片
  209. rpc ManagerUpdateScripPicture (common.ManagerUpdateScripPictureRequest) returns (google.protobuf.Empty){
  210. option (google.api.http) = {
  211. post: "/api/manager/update/scrip/picture",
  212. body:"*"
  213. };
  214. };
  215. // 管理员删除纸条
  216. rpc ManagerDeleteScrip (common.IDParam) returns (google.protobuf.Empty){
  217. option (google.api.http) = {
  218. post: "/api/manager/delete/scrip",
  219. body:"*"
  220. };
  221. };
  222. // 管理员批量删除纸条
  223. rpc ManagerDeleteScripMore (common.Ids) returns (google.protobuf.Empty){
  224. option (google.api.http) = {
  225. post: "/api/manager/delete/scrip/more",
  226. body:"*"
  227. };
  228. };
  229. // 管理员查询举报列表
  230. rpc ManagerFindReportList (common.ManagerFindReportListRequest) returns (common.ManagerFindReportListReply){
  231. option (google.api.http) = {
  232. post: "/api/manager/report/list",
  233. body:"*"
  234. };
  235. };
  236. // 管理员查询某个举报者的举报详情列表
  237. rpc ManagerFindReportDetailsList (common.ManagerFindReportDetailsListRequest) returns (common.ManagerFindReportDetailsListReply){
  238. option (google.api.http) = {
  239. post: "/api/manager/report/details/list",
  240. body:"*"
  241. };
  242. };
  243. // 查询在线人数
  244. rpc FindOnlinePerson (FindOnlinePersonRequest) returns (websocket.FindOnlinePersonReply){
  245. option (google.api.http) = {
  246. post: "/api/manager/online/details/list",
  247. body:"*"
  248. };
  249. };
  250. // 管理员注销用户
  251. rpc ManagerUserUnsubscribe (ManagerUserUnsubscribeRequest) returns (google.protobuf.Empty){
  252. option (google.api.http) = {
  253. post: "/api/manager/user/unsubscribe",
  254. body:"*"
  255. };
  256. };
  257. // 查询在线可匹配人数
  258. rpc FindOnlineCanMatchingPerson (google.protobuf.Empty) returns (websocket.FindOnlineCanMatchingPersonReply){
  259. option (google.api.http) = {
  260. post: "/api/manager/user/matching/list",
  261. body:"*"
  262. };
  263. };
  264. // 管理员增加黑名单图片
  265. rpc ManagerAddBlackPicture (ManagerAddBlackPictureRequest) returns (google.protobuf.Empty){
  266. option (google.api.http) = {
  267. post: "/api/manager/black/picture/add",
  268. body:"*"
  269. };
  270. };
  271. // 管理员增加黑名单图片
  272. rpc SendWebsocketMsg (common.PersonIDParam) returns (websocket.SendMsgReply){
  273. option (google.api.http) = {
  274. post: "/api/manager/websocket/send",
  275. body:"*"
  276. };
  277. };
  278. // 管理员查询纸条列表
  279. rpc ManagerFindScripAllList (ManagerFindScripAllListRequest) returns (common.ManagerScripReply){
  280. option (google.api.http) = {
  281. post: "/api/manager/scrip/all/list",
  282. body:"*"
  283. };
  284. };
  285. // 通过小纸条
  286. rpc SetScripPass (common.ScripID) returns (google.protobuf.Empty){
  287. option (google.api.http) = {
  288. post: "/api/manager/scrip/pass",
  289. body:"*"
  290. };
  291. };
  292. // 通过AI视频任务
  293. rpc UpdateAITaskIsFinish (UpdateAITaskIsFinishRequest) returns (google.protobuf.Empty){
  294. option (google.api.http) = {
  295. post: "/api/manager/ai/task/finish",
  296. body:"*"
  297. };
  298. };
  299. // 查询任务
  300. rpc FindAITask (FindAITaskRequest) returns (FindAITaskReply){
  301. option (google.api.http) = {
  302. post: "/api/manager/ai/task/find",
  303. body:"*"
  304. };
  305. };
  306. rpc FinishOrder (FinishOrderRequest) returns (google.protobuf.Empty){
  307. option (google.api.http) = {
  308. post: "/api/manager/finish/order",
  309. body:"*"
  310. };
  311. };
  312. rpc VipTD (VipTDRequest) returns (google.protobuf.Empty){
  313. option (google.api.http) = {
  314. post: "/api/manager/vip/td",
  315. body:"*",
  316. };
  317. };
  318. }
  319. message VipTDRequest{
  320. int64 id = 1;
  321. }
  322. message FinishOrderRequest{
  323. repeated string orderIds = 1;
  324. }
  325. message FindAITaskRequest{
  326. int64 page = 1;
  327. int64 pageSize = 2;
  328. }
  329. message FindAITaskReply{
  330. repeated TaskInfo list = 1;
  331. bool last = 2;
  332. int64 total = 3;
  333. int64 page = 4;
  334. int64 pageSize = 5;
  335. }
  336. message TaskInfo{
  337. int64 id = 1;
  338. string videoUrl = 2;
  339. string pictureUrl = 3;
  340. }
  341. message UpdateAITaskIsFinishRequest{
  342. int64 id = 1;
  343. bool isPass = 2;
  344. }
  345. message ManagerFindScripAllListRequest{
  346. int64 nextId = 1;
  347. int64 offset = 2;
  348. string status = 3;
  349. int64 personId = 4;//用户ID (number)
  350. int64 scripId = 5;
  351. }
  352. message ManagerAddBlackPictureRequest{
  353. string pictureUrl = 1;
  354. }
  355. message ManagerUserUnsubscribeRequest{
  356. int64 userId = 1;
  357. }
  358. message FindOnlinePersonRequest{
  359. bool isFindAll = 1;
  360. }
  361. message ManagerUpdateUserSexRequest{
  362. int64 userId = 1;
  363. int64 sex = 2;
  364. }
  365. message ManagerFindIsCheckQualityUserListRequest{
  366. int64 page = 1;
  367. int64 pageSize = 2;
  368. int64 id = 3;// 用户ID
  369. string name = 4;// 姓名
  370. int64 sex = 5; // 性别
  371. }
  372. message ManagerUpdateUserCreditRequest{
  373. string personId = 1;
  374. int64 num = 2;
  375. string title = 3;
  376. }
  377. message ManagerMarkHighQualityUserRequest{
  378. repeated string passIds = 1;
  379. repeated string unPassIds = 2;
  380. }
  381. message ManagerReMarkHighQualityUserRequest{
  382. repeated string userIds = 1;
  383. }
  384. message OnlinePersonReply{
  385. int64 userManNum = 1; // 男用户在线数
  386. int64 userWomanNum = 2; // 女用户在线数
  387. int64 userOtherNum = 3; // 未填写性别的用户在线数
  388. }