user.proto 31 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058
  1. syntax = "proto3";
  2. package api.user;
  3. import "google/api/annotations.proto";
  4. //import "google/protobuf/struct.proto";
  5. import "google/protobuf/empty.proto";
  6. import "google/protobuf/struct.proto";
  7. import "api/chat/chat.proto";
  8. import "api/common/common.proto";
  9. import "api/statistics/statistics.proto";
  10. option go_package = "git.ikuban.com/server/pw-protobuf/api/user;user";
  11. option java_multiple_files = true;
  12. option java_package = "api.user";
  13. service User {
  14. // 1、获取用户详情
  15. rpc GetUserInfo (google.protobuf.Empty) returns (UserInfo){
  16. option (google.api.http) = {
  17. post: "/api/user/info",
  18. body:"*"
  19. };
  20. };
  21. // 2、用户发送验证码
  22. rpc SendPhoneCode (common.SendPhoneCodeRequest) returns (google.protobuf.Empty){
  23. option (google.api.http) = {
  24. post: "/api/user/code/send",
  25. body:"*"
  26. };
  27. };
  28. // 3、用户验证验证码
  29. rpc CheckPhoneCode (common.CheckPhoneCodeRequest) returns (google.protobuf.Empty){
  30. option (google.api.http) = {
  31. post: "/api/user/code/check",
  32. body:"*"
  33. };
  34. };
  35. // 4、更新用户信息
  36. rpc UpdateUserInformation (common.UpdateInformationRequest) returns (google.protobuf.Empty){
  37. option (google.api.http) = {
  38. post: "/api/user/update/information",
  39. body:"*"
  40. };
  41. };
  42. // 5、创建用户与某人的关联
  43. rpc CreateUserPersonRoom (common.CreateChatRoomParam) returns (chat.RoomReply){
  44. option (google.api.http) = {
  45. post: "/api/user/create/room",
  46. body:"*"
  47. };
  48. };
  49. // 6、获取用户的金额信息
  50. rpc GetUserBalance (google.protobuf.Empty) returns (UserBalance){
  51. option (google.api.http) = {
  52. post: "/api/user/balance",
  53. body:"*"
  54. };
  55. };
  56. // 7、用户获取ta的主页信息
  57. rpc UserGetHomeInfo (common.PersonParam) returns (common.HomeInfo){
  58. option (google.api.http) = {
  59. post: "/api/user/home",
  60. body:"*"
  61. };
  62. };
  63. // 8、用户获取ta的主页访客、关注数
  64. rpc UserGetPersonLikedAndLooked (common.PersonParam) returns (common.LookedAndLikedNum){
  65. option (google.api.http) = {
  66. post: "/api/user/num",
  67. body:"*"
  68. };
  69. };
  70. // 9、查看看过我的列表
  71. rpc FindLookList (common.ListPageRequest) returns (statistics.LookAndLikeListReply){
  72. option (google.api.http) = {
  73. post: "/api/user/list/look",
  74. body:"*"
  75. };
  76. };
  77. // 10、微信SDK初始化
  78. rpc WxConf (common.WxConfReq) returns (common.WxConfResponse){
  79. option (google.api.http) = {
  80. post: "/api/wx/jssdk/config",
  81. body:"*"
  82. };
  83. };
  84. // 11、获取标签列表
  85. rpc FindTagListBySex (common.SexReq) returns (common.TagListReply){
  86. option (google.api.http) = {
  87. post: "/api/user/list/tag",
  88. body:"*"
  89. };
  90. };
  91. // 12、获取在线列表
  92. rpc FindOnlineList (common.ListPage2Request) returns (common.RecommendPersonListReply){
  93. option (google.api.http) = {
  94. post: "/api/user/list/online",
  95. body:"*"
  96. };
  97. };
  98. // 13、七天内列表(当前会话)
  99. rpc FindWithinSevenDayRoomList (common.ListPageRequest) returns (UserFindChatListReply){
  100. option (google.api.http) = {
  101. post: "/api/user/list/chat/within",
  102. body:"*"
  103. };
  104. };
  105. // 14、七天外列表(更早的聊天记录)
  106. rpc FindOverSevenDayRoomList (common.ListPageRequest) returns (UserFindChatListReply){
  107. option (google.api.http) = {
  108. post: "/api/user/list/chat/over",
  109. body:"*"
  110. };
  111. };
  112. // 密友列表
  113. rpc FindCloseFriendRoomList (common.ListPageRequest) returns (UserFindChatListReply){
  114. option (google.api.http) = {
  115. post: "/api/user/list/chat/friend",
  116. body:"*"
  117. };
  118. };
  119. // 15、用户查询聊天记录
  120. rpc FindChatRecordList (common.FindChatRecordListRequest) returns (common.ChatRecordListReply){
  121. option (google.api.http) = {
  122. post: "/api/user/chat/record",
  123. body:"*"
  124. };
  125. };
  126. // 16、用户查询房间信息
  127. rpc FindChatRoomMsg (common.FindChatRoomMsgRequest) returns (common.ChatRoomMsg){
  128. option (google.api.http) = {
  129. post: "/api/user/chat/room/msg",
  130. body:"*"
  131. };
  132. };
  133. // 17、用户查询是否关注某人
  134. rpc GetUserIsLike (common.PersonParam) returns (common.IsLike){
  135. option (google.api.http) = {
  136. post: "/api/user/islike",
  137. body:"*"
  138. };
  139. };
  140. // 18、通过类型获取表情包列表
  141. rpc FindMemeByType (common.MemeRequest) returns (common.MemeList){
  142. option (google.api.http) = {
  143. post: "/api/user/find/meme/type",
  144. body:"*"
  145. };
  146. };
  147. // 19、获取对方性别的聊天话题
  148. rpc FindChatTopic (common.FindChatTopicRequest) returns (common.ChatTopicList){
  149. option (google.api.http) = {
  150. post: "/api/user/find/topic",
  151. body:"*"
  152. };
  153. };
  154. // 20、随机表情包
  155. rpc RandomMeme (common.RandomNum) returns (common.CommonTextList){
  156. option (google.api.http) = {
  157. post: "/api/user/find/meme/random",
  158. body:"*"
  159. };
  160. };
  161. // 21、随机打招呼
  162. rpc RandomSwiftMessage (common.RandomNumAndSex) returns (common.CommonTextList){
  163. option (google.api.http) = {
  164. post: "/api/user/find/topic/random",
  165. body:"*"
  166. };
  167. };
  168. // 22、表情包分类名
  169. rpc FindMemeTitle (google.protobuf.Empty) returns (common.MemeTitleList){
  170. option (google.api.http) = {
  171. post: "/api/user/find/meme/title",
  172. body:"*"
  173. };
  174. };
  175. // 23、用户获取聊天对象的资料卡片
  176. rpc UserGetChatCard(common.PersonParam) returns (common.ChatCardInfo){
  177. option (google.api.http) = {
  178. post: "/api/user/chat/card",
  179. body:"*"
  180. };
  181. };
  182. // 24、聊天话题分类名
  183. rpc FindChatTopicTitle (google.protobuf.Empty) returns (common.MemeTitleList){
  184. option (google.api.http) = {
  185. post: "/api/user/find/chat/title",
  186. body:"*"
  187. };
  188. };
  189. // 25、用户关注某人
  190. rpc UserLike(common.PersonParam) returns (google.protobuf.Empty){
  191. option (google.api.http) = {
  192. post: "/api/user/like",
  193. body:"*"
  194. };
  195. };
  196. // 26、用户取关某人
  197. rpc UserUnLike(common.PersonParam) returns (google.protobuf.Empty){
  198. option (google.api.http) = {
  199. post: "/api/user/unlike",
  200. body:"*"
  201. };
  202. };
  203. // 27、举报某人
  204. rpc Report (common.ReportChatRequest) returns (google.protobuf.Empty){
  205. option (google.api.http) = {
  206. post: "/api/user/report",
  207. body:"*"
  208. };
  209. };
  210. // 28、超过七天的头像列表
  211. rpc FindOverSevenDayAvatar (google.protobuf.Empty) returns (common.FindOverSevenDayAvatarReply){
  212. option (google.api.http) = {
  213. post: "/api/user/over/avatar/list",
  214. body:"*"
  215. };
  216. };
  217. // 29、更新上次访问的小纸条
  218. rpc UpdateLastScripID (common.UpdateLastScripIDRequest) returns (google.protobuf.Empty){
  219. option (google.api.http) = {
  220. post: "/api/user/scrip/last/update",
  221. body:"*"
  222. };
  223. };
  224. // 30、创建纸条
  225. rpc CreateScrip (CreateScripRequest) returns (common.ScripID){
  226. option (google.api.http) = {
  227. post: "/api/user/scrip/create",
  228. body:"*"
  229. };
  230. };
  231. // 31、删除纸条
  232. rpc DeleteScrip (DeleteScripRequest) returns (google.protobuf.Empty){
  233. option (google.api.http) = {
  234. post: "/api/user/scrip/delete",
  235. body:"*"
  236. };
  237. };
  238. // 32、查询自己的小纸条
  239. rpc FindMyScrip (UserFindScripRequest) returns (common.ScripReply){
  240. option (google.api.http) = {
  241. post: "/api/user/scrip/find/self",
  242. body:"*"
  243. };
  244. };
  245. // 33、查询别人的小纸条
  246. rpc FindOtherScrip (common.FindScripRequest) returns (common.ScripReply){
  247. option (google.api.http) = {
  248. post: "/api/user/scrip/find/other",
  249. body:"*"
  250. };
  251. };
  252. // 34、查询随机纸条列表
  253. rpc FindRecommendScrip (UserFindScripRequest) returns (common.ScripReply){
  254. option (google.api.http) = {
  255. post: "/api/user/scrip/find/recommend",
  256. body:"*"
  257. };
  258. };
  259. // 35、用户查看纸条
  260. rpc PersonLookScrip (PersonLookScripRequest) returns (google.protobuf.Empty){
  261. option (google.api.http) = {
  262. post: "/api/user/scrip/look",
  263. body:"*"
  264. };
  265. };
  266. // 36、用户点击回看
  267. rpc PersonClickLookBack (google.protobuf.Empty) returns (common.ScripInfo){
  268. option (google.api.http) = {
  269. post: "/api/user/scrip/look/back",
  270. body:"*"
  271. };
  272. };
  273. // 37、用户回复小纸条
  274. rpc PersonReplyScrip (ReplyScripRequest) returns (common.ChatRecordInfo){
  275. option (google.api.http) = {
  276. post: "/api/user/scrip/reply",
  277. body:"*"
  278. };
  279. };
  280. // 38、用户删除房间
  281. rpc UserDeleteChat (common.RoomIDRequest) returns (google.protobuf.Empty){
  282. option (google.api.http) = {
  283. post: "/api/user/chat/delete",
  284. body:"*"
  285. };
  286. };
  287. // 39、获取用户的总未读数
  288. rpc GetUserAllUnreadNum (google.protobuf.Empty) returns (chat.UnreadNumReply){
  289. option (google.api.http) = {
  290. post: "/api/user/chat/unread/num",
  291. body:"*"
  292. };
  293. };
  294. // 40、用户查询与某人的房间
  295. rpc GetUserRoomByPerson (common.PersonParam) returns (chat.UserRoomInfo){
  296. option (google.api.http) = {
  297. post: "/api/user/room/info",
  298. body:"*"
  299. };
  300. };
  301. // 41、查看我喜欢的列表
  302. rpc FindLikeList (common.ListPageRequest) returns (statistics.LookAndLikeListReply){
  303. option (google.api.http) = {
  304. post: "/api/user/list/like",
  305. body:"*"
  306. };
  307. };
  308. // 42、查看喜欢我的列表
  309. rpc FindLikedList (common.ListPageRequest) returns (statistics.LookAndLikeListReply){
  310. option (google.api.http) = {
  311. post: "/api/user/list/liked",
  312. body:"*"
  313. };
  314. };
  315. // ---还未共用---
  316. // 用户拉黑某人
  317. rpc UserSetBlackChat (common.RoomIDRequest) returns (google.protobuf.Empty){
  318. option (google.api.http) = {
  319. post: "/api/user/set/black",
  320. body:"*"
  321. };
  322. };
  323. // ---用户专用---
  324. // 检查用户是否与接待员关联
  325. rpc CheckUserPartnerIsRelationship (common.PartnerIDParam) returns (chat.CheckUserPartnerIsRelationshipReply){
  326. option (google.api.http) = {
  327. post: "/api/user/check/relationship",
  328. body:"*"
  329. };
  330. };
  331. // 获取接待员的确认通过页面信息
  332. rpc GetPartnerCircleInfo (KeyRequest) returns (common.AddFriendMessageInfo){
  333. option (google.api.http) = {
  334. post: "/api/user/circle/info",
  335. body:"*"
  336. };
  337. };
  338. // 获取用户的访客数以及关注数
  339. rpc GetLookAndLikeStatisticsMessage (google.protobuf.Empty) returns (statistics.LookAndLikeMessageReply){
  340. option (google.api.http) = {
  341. post: "/api/user/num/like_look",
  342. body:"*"
  343. };
  344. };
  345. // 获取用户访问数详情
  346. rpc GetUserLookNum (google.protobuf.Empty) returns (statistics.LookMessageReply){
  347. option (google.api.http) = {
  348. post: "/api/user/look/num",
  349. body:"*"
  350. };
  351. };
  352. // 用户完善资料
  353. rpc UserFinishInformation (google.protobuf.Empty) returns (google.protobuf.Empty){
  354. option (google.api.http) = {
  355. post: "/api/user/information/finish",
  356. body:"*"
  357. };
  358. };
  359. // 用户完善情况
  360. rpc UserInformationStatus (google.protobuf.Empty) returns (InformationStatus){
  361. option (google.api.http) = {
  362. post: "/api/user/information/status",
  363. body:"*"
  364. };
  365. };
  366. // 用户获取完善资料奖励
  367. rpc UserGetInformationAward(google.protobuf.Empty) returns (google.protobuf.Empty){
  368. option (google.api.http) = {
  369. post: "/api/user/information/award",
  370. body:"*"
  371. };
  372. };
  373. // 解锁"看过我的"的记录
  374. rpc UnlockLookRecord (common.PersonParam) returns (google.protobuf.Empty){
  375. option (google.api.http) = {
  376. post: "/api/user/look/unlock",
  377. body:"*"
  378. };
  379. };
  380. // 用户充值
  381. rpc UserRecharge (UserRechargeRequest) returns (PayInfo){
  382. option (google.api.http) = {
  383. post: "/api/user/recharge",
  384. body:"*"
  385. };
  386. };
  387. // 用户充值
  388. rpc UserRechargeVip (UserRechargeRequest) returns (PayInfo){
  389. option (google.api.http) = {
  390. post: "/api/user/recharge/vip",
  391. body:"*"
  392. };
  393. };
  394. // 充值套餐列表
  395. rpc FindRechargeList (google.protobuf.Empty) returns (RechargeList){
  396. option (google.api.http) = {
  397. post: "/api/user/recharge/list",
  398. body:"*"
  399. };
  400. };
  401. // 充值Vip套餐列表
  402. rpc FindVipRechargeList (google.protobuf.Empty) returns (VipRechargeList){
  403. option (google.api.http) = {
  404. post: "/api/user/recharge/vip/list",
  405. body:"*"
  406. };
  407. };
  408. // 用户充值记录列表
  409. rpc FindPayList (FindPayOrderListRequest) returns (PayOrderList){
  410. option (google.api.http) = {
  411. post: "/api/user/pay/list",
  412. body:"*"
  413. };
  414. };
  415. // 查询推荐人的列表
  416. rpc FindRecommendPersonList (google.protobuf.Empty) returns (common.RecommendPersonListReply){
  417. option (google.api.http) = {
  418. post: "/api/user/list/recommend",
  419. body:"*"
  420. };
  421. };
  422. // 获取匹配的头像数组以及数量
  423. rpc FindMatchingAvatarAndNum (google.protobuf.Empty) returns (FindMatchingAvatarAndNumReply){
  424. option (google.api.http) = {
  425. post: "/api/user/matching/message",
  426. body:"*"
  427. };
  428. };
  429. // 获取假弹窗
  430. rpc GetWindowInfo (google.protobuf.Empty) returns (chat.WindowInfo){
  431. option (google.api.http) = {
  432. post: "/api/user/chat/window/get",
  433. body:"*"
  434. };
  435. };
  436. // 用户的每日免费数
  437. rpc GetUserFreeNum (google.protobuf.Empty) returns (UserFreeNum){
  438. option (google.api.http) = {
  439. post: "/api/user/free/num",
  440. body:"*"
  441. };
  442. };
  443. // 随机速配
  444. rpc GetRandomMatching (GetRandomMatchingRequest) returns (chat.GetRandomMatchingReply){
  445. option (google.api.http) = {
  446. post: "/api/user/random/matching",
  447. body:"*"
  448. };
  449. };
  450. // 解锁语音扣费
  451. rpc UnlockVoice (common.RoomIDRequest) returns (google.protobuf.Empty){
  452. option (google.api.http) = {
  453. post: "/api/user/unlock/voice",
  454. body:"*"
  455. };
  456. };
  457. // 解锁图片扣费
  458. rpc UnlockPicture (common.RoomIDRequest) returns (google.protobuf.Empty){
  459. option (google.api.http) = {
  460. post: "/api/user/unlock/picture",
  461. body:"*"
  462. };
  463. };
  464. // 更新用户注册状态
  465. rpc UpdateUserIsRegister (google.protobuf.Empty) returns (google.protobuf.Empty){
  466. option (google.api.http) = {
  467. post: "/api/user/update/register",
  468. body:"*"
  469. };
  470. };
  471. // 创建用户与接待员的关联
  472. rpc CreateUserPartnerRoom (common.CreateChatRoomParam) returns (chat.RoomReply){
  473. option (google.api.http) = {
  474. post: "/api/user/create/room/partner",
  475. body:"*"
  476. };
  477. };
  478. // 用户发送消息
  479. // 发送消息
  480. rpc SendMessage (SendMessageRequest) returns (common.SendMessageReply){
  481. option (google.api.http) = {
  482. post: "/api/user/message/send",
  483. body:"*"
  484. };
  485. };
  486. rpc GetVipInfo (google.protobuf.Empty) returns (VipInfo){
  487. option (google.api.http) = {
  488. post: "/api/vip/info",
  489. body:"*"
  490. };
  491. };
  492. // 精选列表
  493. rpc FindHandpickUser (google.protobuf.Empty) returns (common.HandpickPersonListReply){
  494. option (google.api.http) = {
  495. post: "/api/handpick/list",
  496. body:"*"
  497. };
  498. };
  499. // 查询用户查看精选表的次数
  500. rpc GetUserLookHandPickNum (google.protobuf.Empty) returns (GetUserLookHandPickNumReply){
  501. option (google.api.http) = {
  502. post: "/api/user/look/handpick/num",
  503. body:"*"
  504. };
  505. };
  506. // 设置用户查看精选表的次数
  507. rpc SetUserLookHandPickNum (common.PersonIDParam) returns (google.protobuf.Empty){
  508. option (google.api.http) = {
  509. post: "/api/user/look/handpick/num/set",
  510. body:"*"
  511. };
  512. };
  513. // 获取用户是能否领取回归奖励
  514. rpc IsCanGetReturnReword (google.protobuf.Empty) returns (IsCanGetReturnRewordReply){
  515. option (google.api.http) = {
  516. post: "/api/user/return/reword/status",
  517. body:"*"
  518. };
  519. };
  520. // 用户领取回归奖励
  521. rpc UserGetReturnReword (google.protobuf.Empty) returns (google.protobuf.Empty){
  522. option (google.api.http) = {
  523. post: "/api/user/return/reword/get",
  524. body:"*"
  525. };
  526. };
  527. // 用户隐私状态
  528. rpc UserPrivacyStatus (google.protobuf.Empty) returns (UserPrivacyStatusInfo){
  529. option (google.api.http) = {
  530. post: "/api/user/privacy/status",
  531. body:"*"
  532. };
  533. };
  534. // 用户设置隐私状态
  535. rpc UserSetPrivacyStatus (UserPrivacyStatusInfo) returns (google.protobuf.Empty){
  536. option (google.api.http) = {
  537. post: "/api/user/privacy/set",
  538. body:"*"
  539. };
  540. };
  541. // ---manager---
  542. // 管理员查询用户列表
  543. rpc ManagerFindUserList (common.ManagerFindPersonListRequest) returns (common.ManagerFindPersonListReply){
  544. option (google.api.http) = {
  545. post: "/api/manager/user/list",
  546. body:"*"
  547. };
  548. };
  549. // 管理员查询完善过资料的用户列表
  550. rpc ManagerFindInformationUserList (common.ManagerFindPersonListRequest) returns (common.ManagerFindPersonListReply){
  551. option (google.api.http) = {
  552. post: "/api/manager/user/list/information",
  553. body:"*"
  554. };
  555. };
  556. // 管理员查询已审核过信息的列表
  557. rpc ManagerFindIsCheckQualityUserList (ManagerFindIsCheckQualityUserListRequest) returns (common.ManagerFindPersonListReply2){
  558. option (google.api.http) = {
  559. post: "/api/manager/user/list/ischeckquality",
  560. body:"*"
  561. };
  562. };
  563. // 管理员查询优质用户列表
  564. rpc ManagerFindHighQualityUserList (common.ManagerFindPersonListRequest) returns (common.ManagerFindPersonListReply){
  565. option (google.api.http) = {
  566. post: "/api/manager/quality/user/list",
  567. body:"*"
  568. };
  569. };
  570. // 管理员查询精选用户
  571. rpc ManagerFindCanHandpickUserList (common.ManagerFindCanHandpickUserListRequest) returns (common.ManagerFindCanHandpickUserListReply){
  572. option (google.api.http) = {
  573. post: "/api/manager/handpick/user/list",
  574. body:"*"
  575. };
  576. };
  577. // 管理员批量更新精选用户
  578. rpc ManagerSetHandpickUser (common.ManagerSetHandpickUserRequest) returns (google.protobuf.Empty){
  579. option (google.api.http) = {
  580. post: "/api/manager/handpick/user/set",
  581. body:"*"
  582. };
  583. };
  584. // 管理员更新单个精选用户
  585. rpc ManagerSetHandpickUserOne (common.ManagerSetHandpickUserOneRequest) returns (google.protobuf.Empty){
  586. option (google.api.http) = {
  587. post: "/api/manager/handpick/user/set/one",
  588. body:"*"
  589. };
  590. };
  591. // 管理员标记优质用户
  592. rpc ManagerMarkHighQualityUser (ManagerMarkHighQualityUserRequest) returns (google.protobuf.Empty){
  593. option (google.api.http) = {
  594. post: "/api/manager/quality/user/set",
  595. body:"*"
  596. };
  597. };
  598. // 管理员批量取消标记优质用户
  599. rpc ManagerReMarkHighQualityUser (ManagerReMarkHighQualityUserRequest) returns (google.protobuf.Empty){
  600. option (google.api.http) = {
  601. post: "/api/manager/quality/user/remark",
  602. body:"*"
  603. };
  604. };
  605. // 管理员标记单个优质用户
  606. rpc ManagerMarkHighQualityUserOne (common.PersonIDParam) returns (google.protobuf.Empty){
  607. option (google.api.http) = {
  608. post: "/api/manager/quality/user/set/one",
  609. body:"*"
  610. };
  611. };
  612. // 管理员批量拉黑用户
  613. rpc ManagerSetUserBlack (common.PersonIDList) returns (google.protobuf.Empty){
  614. option (google.api.http) = {
  615. post: "/api/manager/black/user/more",
  616. body:"*"
  617. };
  618. };
  619. // 管理员取消标记优质用户
  620. rpc ManagerDeleteHighQualityUser (common.PersonIDParam) returns (google.protobuf.Empty){
  621. option (google.api.http) = {
  622. post: "/api/manager/quality/user/delete",
  623. body:"*"
  624. };
  625. };
  626. // 管理员更新用户语音
  627. rpc ManagerUpdateUserVoice (common.ManagerUpdatePersonVoiceRequest) returns (google.protobuf.Empty){
  628. option (google.api.http) = {
  629. post: "/api/manager/user/Voice/update",
  630. body:"*"
  631. };
  632. };
  633. // 管理员更新用户相册
  634. rpc ManagerUpdateUserPictures (common.ManagerUpdatePersonPicturesRequest) returns (google.protobuf.Empty){
  635. option (google.api.http) = {
  636. post: "/api/manager/user/pictures/update",
  637. body:"*"
  638. };
  639. };
  640. // 管理员更新用户签名
  641. rpc ManagerUpdateUserSignature (common.ManagerUpdatePersonSignatureRequest) returns (google.protobuf.Empty){
  642. option (google.api.http) = {
  643. post: "/api/manager/user/signature/update",
  644. body:"*"
  645. };
  646. };
  647. // 管理员更新用户头像
  648. rpc ManagerUpdateUserAvatar (common.ManagerUpdatePersonAvatarRequest) returns (google.protobuf.Empty){
  649. option (google.api.http) = {
  650. post: "/api/manager/user/avatar/update",
  651. body:"*"
  652. };
  653. };
  654. // 管理员更新用户昵称
  655. rpc ManagerUpdateUserName (common.ManagerUpdatePersonNameRequest) returns (google.protobuf.Empty){
  656. option (google.api.http) = {
  657. post: "/api/manager/user/name/update",
  658. body:"*"
  659. };
  660. };
  661. // 管理员更新用户权重
  662. rpc ManagerUpdateUserWeight (common.ManagerUpdatePersonWeightRequest) returns (google.protobuf.Empty){
  663. option (google.api.http) = {
  664. post: "/api/manager/user/weight/update",
  665. body:"*"
  666. };
  667. };
  668. // 管理员更新用户是否拉黑
  669. rpc ManagerUpdateUserIsBlack (common.ManagerUpdatePersonIsBlackRequest) returns (google.protobuf.Empty){
  670. option (google.api.http) = {
  671. post: "/api/manager/user/black/update",
  672. body:"*"
  673. };
  674. };
  675. // 管理员增加用户积分
  676. rpc ManagerUpdateUserCredit (ManagerUpdateUserCreditRequest) returns (google.protobuf.Empty){
  677. option (google.api.http) = {
  678. post: "/api/manager/user/credit/add",
  679. body:"*"
  680. };
  681. };
  682. // ---rpc---
  683. // 1、获取用户详情
  684. rpc GetUserDBMsg (common.PersonIDParam) returns (common.PersonMsg);
  685. // 2、通过用户IDs查看用户信息列表
  686. rpc FindUserDBList (common.PersonIDList) returns (common.PersonDBReply);
  687. // 3、对内更新
  688. rpc UpdateLastScripIDDB (common.UpdateLastScripIDDBRequest) returns (google.protobuf.Empty){};
  689. // 4、查询推荐用户的数据
  690. rpc FindRecommendUserDBList (common.FindRecommendRequest) returns (common.PersonDBReply){};
  691. // 5、更新上次登录时间
  692. rpc UpdateUserLastLoginTime (common.PersonIDParam) returns (google.protobuf.Empty){};
  693. // 6、通过userID查询用户
  694. rpc GetUserDBMsgByAccountID (common.IDParam) returns (common.PersonMsg);
  695. // 获取推荐的人(new)
  696. rpc FindRecommendHighQualityUserDBList (FindRecommendHighQualityUserRequest) returns (FindRecommendHighQualityUserReply){};
  697. // 获取用户详情websocket专用
  698. rpc GetUserDBMsgFromWebsocket (common.PersonIDParam) returns (GetUserDBMsgFromWebsocketReply);
  699. // 发送消息扣费
  700. rpc SendMsgReduceCredit (SendMsgReduceCreditRequest) returns (google.protobuf.Empty);
  701. // 回看纸条扣费
  702. rpc LookBackScripReduceCredit (common.PersonParam) returns (google.protobuf.Empty);
  703. // 发纸条扣费
  704. rpc CreateScripReduceCredit (common.PersonParam) returns (google.protobuf.Empty);
  705. // 回纸条扣费
  706. rpc ReplyScripReduceCredit (common.PersonParam) returns (google.protobuf.Empty);
  707. // 匹配扣费
  708. rpc MatchingCredit (common.PersonParam) returns (google.protobuf.Empty);
  709. // 未读发送模板消息
  710. rpc SendNewMessageUnreadReminder (SendNewMessageUnreadReminderRequest) returns (google.protobuf.Empty){};
  711. // 好友访问提醒
  712. rpc SendNewVisitorTemplateReminder (common.PersonIDParam) returns (google.protobuf.Empty){};
  713. // 更新今日被匹配数并返回用户信息
  714. rpc UpdateUserMatchedNumAndReturnUserMsg (UpdateUserMatchedNumRequest) returns (UpdateUserMatchedNumAndReturnUserMsgReply){};
  715. // 获取未匹配的离线用户
  716. rpc GetRecommendUserDB(GetRecommendUserDBRequest) returns(common.PersonDB){}
  717. // 举报超过3次拉黑用户
  718. rpc ReportUserBlack (ReportUserBlackRequest) returns (google.protobuf.Empty){};
  719. // 用户加积分
  720. rpc AddUserCredit (AddUserCreditRequest) returns (google.protobuf.Empty){};
  721. // 用户完善情况
  722. rpc UserInformationStatusDB (common.PersonIDParam) returns (InformationStatus){};
  723. // 用户完成完善资料任务 兼容
  724. rpc UserGetInformationAwardByActivity (UserGetInformationAwardByActivityRequest) returns (UserGetInformationAwardByActivityReply){};
  725. // 获取userIDs对应的vip信息
  726. rpc FindUserVipDBList (common.PersonIDList) returns (FindUserVipListDBReply){};
  727. // 匹配不存在map中并满足条件的用户
  728. rpc MatchUserDBWithoutMap (MatchUserDBWithoutMapRequest) returns (common.PersonDB){};
  729. }
  730. message UserPrivacyStatusInfo{
  731. bool isCloseGreet = 1;// 是否关闭打招呼
  732. bool isCloseMatching = 2;// 是否关闭匹配到我
  733. }
  734. message IsCanGetReturnRewordReply{
  735. bool isCanGetReword = 1;
  736. }
  737. message GetRandomMatchingRequest{
  738. int64 sex = 4;// 性别
  739. string province = 7;// 省
  740. string city = 8;// 市
  741. int64 maxAge = 9;// 最大年龄
  742. int64 minAge = 10;// 最小年龄
  743. }
  744. message MatchUserDBWithoutMapRequest{
  745. map <string,bool> isMatchingMap = 1;// 已经匹配过的map
  746. string province = 2;// 省
  747. string city = 3;// 市
  748. int64 maxAge = 4;// 最大年龄
  749. int64 minAge = 5;// 最小年龄
  750. int64 sex = 6;// 性别
  751. }
  752. message GetUserLookHandPickNumReply{
  753. int64 num = 1;
  754. repeated string userIdList = 2;
  755. }
  756. message FindUserVipListDBReply{
  757. map <string,VipInfo> vipMap = 1;
  758. }
  759. message VipInfo{
  760. bool isVip = 1; // 是否是vip
  761. int64 vipLevel = 2;// vip 等级
  762. int64 growthValue = 3;// vip成长值
  763. int64 renewalTime = 4;// 会员的续费时间
  764. int64 expirationTime = 5;// 会员的到期时间
  765. int64 createTime = 6;// 会员的开始时间
  766. bool isYearVip = 7;// 是否是年费vip
  767. repeated string vipFunctions = 8;// vip功能
  768. string userId = 9;// id
  769. }
  770. message SendMsgReduceCreditRequest{
  771. string personID = 1; // 查询目标的ID
  772. bool isFree = 2;// 是否免费
  773. string type = 3; // 消息类型
  774. }
  775. message UserGetInformationAwardByActivityRequest{
  776. string userId = 1;
  777. int64 credit = 2;
  778. string desc = 3;
  779. }
  780. message UserGetInformationAwardByActivityReply{
  781. bool isError = 1;
  782. }
  783. message AddUserCreditRequest{
  784. string id = 1; // id
  785. int64 credit = 2;// 积分
  786. string detail = 3;
  787. }
  788. message ReportUserBlackRequest{
  789. string personId = 1;
  790. string result = 2;
  791. }
  792. message SendMessageRequest{
  793. int64 roomId = 1;// 房间ID
  794. common.Message message = 2;// 消息
  795. string msgType = 3;// 消息类型
  796. string websocketTag = 4;
  797. }
  798. message ManagerFindIsCheckQualityUserListRequest{
  799. int64 page = 1;
  800. int64 pageSize = 2;
  801. int64 id = 3;// 用户ID
  802. string name = 4;// 姓名
  803. int64 sex = 5; // 性别
  804. }
  805. message ManagerUpdateUserCreditRequest{
  806. string personId = 1;
  807. int64 num = 2;
  808. string title = 3;
  809. }
  810. message ManagerMarkHighQualityUserRequest{
  811. repeated string passIds = 1;
  812. repeated string unPassIds = 2;
  813. }
  814. message ManagerReMarkHighQualityUserRequest{
  815. repeated string userIds = 1;
  816. }
  817. message GetRecommendUserDBRequest{
  818. int64 sex = 2;
  819. repeated string personIds = 3; // 匹配过的用户
  820. }
  821. message FindRecommendHighQualityUserRequest{
  822. int64 num = 1;// 数量
  823. int64 sex = 3;
  824. string personId = 4;// ID
  825. }
  826. message FindRecommendHighQualityUserReply{
  827. repeated string personIdList =1;
  828. }
  829. message UpdateUserMatchedNumAndReturnUserMsgReply{
  830. int64 todayMatchedNum = 1;// 今日被匹配数
  831. string nickname = 2;// 昵称
  832. string avatarUrl =3;// 头像链接
  833. int64 sex = 4;// 性别
  834. int64 age = 5; // 年龄
  835. string city = 6;//城市
  836. }
  837. message GetUserDBMsgFromWebsocketReply{
  838. string id = 1; // id
  839. int64 sex = 2;// 性别
  840. int64 weight = 3;// 权重
  841. string workingStatus = 4;// 工作状态
  842. int64 todayMatchedNum = 5;// 今日被匹配数
  843. int64 age = 6;// 年龄
  844. string province = 7;// 省
  845. string city = 8;// 市
  846. }
  847. message UpdateUserMatchedNumRequest{
  848. string userId = 2;
  849. }
  850. message SendNewMessageUnreadReminderRequest{
  851. string personId = 1;
  852. string sendPersonId = 2;
  853. }
  854. message SendMsgReduceCreditReply{
  855. bool isSendReminder = 1;// 是否发送免费次数用完提醒
  856. }
  857. message UserFreeNum{
  858. int64 replyScripNum = 1;// 今日可免费回复纸条的次数
  859. int64 createScripNum = 2;// 今日免费创建纸条的次数
  860. int64 matchingNum = 3;// 今日免费匹配数
  861. }
  862. message ReplyScripRequest {
  863. int64 scripId = 4;// 小纸条ID
  864. common.Message message = 5;// 回复内容 只需要提供 回复小纸条的内容 或 回复小纸条的素材链接
  865. string msgType = 6;
  866. }
  867. message PersonLookScripRequest{
  868. int64 scripId = 3;// 纸条id
  869. }
  870. message UserFindScripRequest {
  871. int64 nextId = 3;
  872. int64 offset = 4;
  873. }
  874. message DeleteScripRequest {
  875. int64 scripId = 1;// 纸条id
  876. }
  877. message CreateScripRequest {
  878. string text = 1;// 纸条内容
  879. string pictureUrl = 2; // 纸条背景图
  880. }
  881. message FindMatchingAvatarAndNumReply{
  882. int64 num = 1;// 匹配人数
  883. repeated string list = 2;// 头像列表
  884. }
  885. message UserRechargeRequest{
  886. int64 RechargeTemplateId = 1;// 充值套餐ID
  887. }
  888. message RechargeList{
  889. repeated RechargeInfo list = 1;
  890. }
  891. message VipRechargeList{
  892. repeated VipRechargeInfo list = 1;
  893. }
  894. message VipRechargeInfo{
  895. int64 id = 1;
  896. string label = 2;// 标题
  897. int64 price = 3;// 价格
  898. int64 originPrice = 4;// 原价
  899. int64 averagePerDayPrice = 5;// 日常价格
  900. int64 additionalCoin = 6;// 赠送的积分
  901. string description = 7;// 描述
  902. }
  903. message RechargeInfo{
  904. int64 id = 1;
  905. int64 price = 2;
  906. int64 credit = 3;// 积分
  907. int64 giveCredit = 4;// 赠送的积分
  908. string description = 5;// 描述
  909. string title = 6;// 标题
  910. }
  911. message InformationStatus{
  912. bool isFinishInformation = 1;//是否完善资料
  913. bool isGetAward = 2;// 是否领取奖励
  914. int64 credit = 3;// 奖励的金额
  915. }
  916. message UserBalance{
  917. string id = 1; // id
  918. int64 credit = 2;// 积分
  919. }
  920. message UserFindChatListReply{
  921. repeated UserChatInfo list = 1;
  922. int64 nextId = 2;
  923. }
  924. message UserChatInfo{
  925. string personId = 2;// 用户ID
  926. int64 unreadNum = 3;// 用户未读数
  927. string lastContent = 4;// 上次发送内容
  928. int64 lastTime = 5;// 上次发送时间
  929. int64 likeability = 6;// 好感度
  930. int64 sex = 8;// 性别
  931. string avatarUrl = 9;// 头像
  932. string nickname = 10;// 昵称
  933. int64 age = 11;// 年龄
  934. int64 roomId = 12;// 房间号ID
  935. bool isVip = 15;// 是否是Vip
  936. int64 vipLevel = 16;// vip等级
  937. bool isYearVip = 17;// 是否是年费Vip
  938. repeated string vipFunctions = 18;// vip功能
  939. }
  940. message UserInfo{
  941. string id = 1; // id
  942. string nickname = 2;// 昵称
  943. string avatarUrl =3;// 头像链接
  944. int64 age = 4;// 年龄
  945. int64 sex = 5;// 性别
  946. string constellation = 6; // 星座
  947. int64 credit = 7;// 积分
  948. repeated int64 tagList = 8; // 标签
  949. string signature = 9; // 签名
  950. string introduceVoice = 10; // 介绍语音
  951. string province = 11;// 省
  952. string city = 12;// 市
  953. string area = 13;// 区
  954. int64 userId = 14;// 用户ID
  955. bool isBlack = 15;// 是否被封号
  956. bool isRegister = 16;// 是否注册
  957. int64 UpdateNicknameNum = 17;// 今日更新昵称数
  958. int64 UpdateAvatarUrlNum = 18;// 今日更新头像数
  959. int64 UpdatePicturesNum = 19; // 今日更新相册数
  960. int64 UpdateSignatureNum = 20; // 今日更新签名数
  961. }
  962. message KeyRequest{
  963. string key = 1;
  964. }
  965. message CreatePayRequest{
  966. int64 money = 1; // 支付金额 单位 分
  967. string type = 2; // 类型
  968. string openId = 3;
  969. string description = 4;
  970. string attach = 5;
  971. }
  972. message PayInfo{
  973. google.protobuf.Value payInfo = 1;
  974. int64 orderId = 2;
  975. }
  976. message PayOrderInfo{
  977. string userID = 1;
  978. int64 orderID = 2; // 订单的唯一ID
  979. int64 money = 3; // 支付金额 ,单位分
  980. string type = 4; // 类型
  981. string TransactionID = 5;
  982. string openId = 6;
  983. string description = 7;
  984. string status = 9;// 状态
  985. int64 payTime = 10;// 支付时间
  986. int64 createTime = 11;// 创建时间
  987. }
  988. message PayOrderList{
  989. repeated PayOrderInfo list = 1;
  990. int64 nextId = 2;
  991. }
  992. message FindPayOrderListRequest{
  993. int64 nextId = 1;
  994. int64 offset = 2;
  995. string status = 3;
  996. }
  997. message PayCallbackReply{
  998. bytes result = 1;
  999. }