user.proto 26 KB

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