partner.proto 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796
  1. syntax = "proto3";
  2. package api.partner;
  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/statistics/statistics.proto";
  8. //import "api/chat/chat.proto";
  9. option go_package = "git.ikuban.com/server/pw-protobuf/api/partner;partner";
  10. option java_multiple_files = true;
  11. option java_package = "api.partner";
  12. service Partner {
  13. // ---manager---
  14. // 接待员审核列表
  15. rpc FindExamineList (common.ListPage2Request) returns (FindExamineListReply){
  16. option (google.api.http) = {
  17. post: "/api/partner/register/examine/list",
  18. body:"*"
  19. };
  20. };
  21. // 接待员审核
  22. rpc ExaminePartner (ExaminePartnerRequest) returns (google.protobuf.Empty){
  23. option (google.api.http) = {
  24. post: "/api/partner/register/examine",
  25. body:"*"
  26. };
  27. };
  28. // 管理员登录
  29. rpc ManagerLogin (common.ManagerLoginRequest) returns (common.LoginToken){
  30. option (google.api.http) = {
  31. post: "/api/manager/login",
  32. body:"*"
  33. };
  34. };
  35. // 审核记录列表
  36. rpc FindExamineRecordList (FindExamineRecordListRequest) returns (FindExamineRecordListReply){
  37. option (google.api.http) = {
  38. post: "/api/manager/register/examine/record/list",
  39. body:"*"
  40. };
  41. };
  42. // 当前在线人
  43. rpc OnlinePerson (google.protobuf.Empty) returns (OnlinePersonReply){
  44. option (google.api.http) = {
  45. post: "/api/manager/online/person",
  46. body:"*"
  47. };
  48. };
  49. // 管理员查询房间列表
  50. rpc ManagerFindRoomList (common.ManagerFindRoomListRequest) returns (common.ManagerFindRoomListReply){
  51. option (google.api.http) = {
  52. post: "/api/manager/room/list",
  53. body:"*"
  54. };
  55. };
  56. // 管理员查询聊天记录
  57. rpc ManagerFindChatRecordList (common.ManagerFindChatRecordListRequest) returns (common.ChatRecordListReply){
  58. option (google.api.http) = {
  59. post: "/api/manager/chat/list",
  60. body:"*"
  61. };
  62. };
  63. // 管理员查询纸条列表
  64. rpc ManagerFindScripList (common.ManagerFindScripListRequest) returns (common.ManagerScripReply){
  65. option (google.api.http) = {
  66. post: "/api/manager/scrip/list",
  67. body:"*"
  68. };
  69. };
  70. // 管理员更新纸条文字
  71. rpc ManagerUpdateScripText (common.ManagerUpdateScripTextRequest) returns (google.protobuf.Empty){
  72. option (google.api.http) = {
  73. post: "/api/manager/update/scrip/text",
  74. body:"*"
  75. };
  76. };
  77. // 管理员更新纸条图片
  78. rpc ManagerUpdateScripPicture (common.ManagerUpdateScripPictureRequest) returns (google.protobuf.Empty){
  79. option (google.api.http) = {
  80. post: "/api/manager/update/scrip/picture",
  81. body:"*"
  82. };
  83. };
  84. // 管理员删除纸条
  85. rpc ManagerDeleteScrip (common.IDParam) returns (google.protobuf.Empty){
  86. option (google.api.http) = {
  87. post: "/api/manager/delete/scrip",
  88. body:"*"
  89. };
  90. };
  91. // 管理员查询举报列表
  92. rpc ManagerFindReportList (common.ManagerFindReportListRequest) returns (common.ManagerFindReportListReply){
  93. option (google.api.http) = {
  94. post: "/api/manager/report/list",
  95. body:"*"
  96. };
  97. };
  98. // 管理员查询某个举报者的举报详情列表
  99. rpc ManagerFindReportDetailsList (common.ManagerFindReportDetailsListRequest) returns (common.ManagerFindReportDetailsListReply){
  100. option (google.api.http) = {
  101. post: "/api/manager/report/details/list",
  102. body:"*"
  103. };
  104. };
  105. // // 管理员查询接待员列表
  106. // rpc ManagerFindPartnerList (common.ManagerFindPersonListRequest) returns (common.ManagerFindPersonListReply){
  107. // option (google.api.http) = {
  108. // post: "/api/manager/partner/list",
  109. // body:"*"
  110. // };
  111. // };
  112. // // 管理员更新接待员语音
  113. // rpc ManagerUpdatePartnerVoice (common.ManagerUpdatePersonVoiceRequest) returns (google.protobuf.Empty){
  114. // option (google.api.http) = {
  115. // post: "/api/manager/partner/Voice/update",
  116. // body:"*"
  117. // };
  118. // };
  119. // // 管理员更新接待员相册
  120. // rpc ManagerUpdatePartnerPictures (common.ManagerUpdatePersonPicturesRequest) returns (google.protobuf.Empty){
  121. // option (google.api.http) = {
  122. // post: "/api/manager/partner/pictures/update",
  123. // body:"*"
  124. // };
  125. // };
  126. // // 管理员更新接待员签名
  127. // rpc ManagerUpdatePartnerSignature (common.ManagerUpdatePersonSignatureRequest) returns (google.protobuf.Empty){
  128. // option (google.api.http) = {
  129. // post: "/api/manager/partner/signature/update",
  130. // body:"*"
  131. // };
  132. // };
  133. // // 管理员更新接待员头像
  134. // rpc ManagerUpdatePartnerAvatar (common.ManagerUpdatePersonAvatarRequest) returns (google.protobuf.Empty){
  135. // option (google.api.http) = {
  136. // post: "/api/manager/partner/avatar/update",
  137. // body:"*"
  138. // };
  139. // };
  140. // // 管理员更新接待员昵称
  141. // rpc ManagerUpdatePartnerName (common.ManagerUpdatePersonNameRequest) returns (google.protobuf.Empty){
  142. // option (google.api.http) = {
  143. // post: "/api/manager/partner/name/update",
  144. // body:"*"
  145. // };
  146. // };
  147. // // 管理员更新接待员权重
  148. // rpc ManagerUpdatePartnerWeight (common.ManagerUpdatePersonWeightRequest) returns (google.protobuf.Empty){
  149. // option (google.api.http) = {
  150. // post: "/api/manager/partner/weight/update",
  151. // body:"*"
  152. // };
  153. // };
  154. // // 管理员更新接待员是否拉黑
  155. // rpc ManagerUpdatePartnerIsBlack (common.ManagerUpdatePersonIsBlackRequest) returns (google.protobuf.Empty){
  156. // option (google.api.http) = {
  157. // post: "/api/manager/partner/black/update",
  158. // body:"*"
  159. // };
  160. // };
  161. // // 1、获取接待员的个人信息
  162. // rpc GetPartnerInfo (google.protobuf.Empty) returns (PartnerInfo){
  163. // option (google.api.http) = {
  164. // post: "/api/partner/info",
  165. // body:"*"
  166. // };
  167. // };
  168. // // 2、接待员发送验证码
  169. // rpc SendPhoneCode (common.SendPhoneCodeRequest) returns (google.protobuf.Empty){
  170. // option (google.api.http) = {
  171. // post: "/api/partner/code/send",
  172. // body:"*"
  173. // };
  174. // };
  175. // // 3、接待员验证验证码
  176. // rpc CheckPhoneCode (common.CheckPhoneCodeRequest) returns (google.protobuf.Empty){
  177. // option (google.api.http) = {
  178. // post: "/api/partner/code/check",
  179. // body:"*"
  180. // };
  181. // };
  182. // // 4、更新接待员的信息
  183. // rpc UpdatePartnerInformation (common.UpdateInformationRequest) returns (google.protobuf.Empty){
  184. // option (google.api.http) = {
  185. // post: "/api/partner/update/information",
  186. // body:"*"
  187. // };
  188. // };
  189. // // 5、创建用户与接待员的关联
  190. // rpc CreateUserPartnerRoom (common.CreateChatRoomParam) returns (chat.RoomReply){
  191. // option (google.api.http) = {
  192. // post: "/api/partner/create/room",
  193. // body:"*"
  194. // };
  195. // };
  196. // // 6、获取接待员的金额信息
  197. // rpc GetPartnerBalance (google.protobuf.Empty) returns (PartnerBalance){
  198. // option (google.api.http) = {
  199. // post: "/api/partner/balance",
  200. // body:"*"
  201. // };
  202. // };
  203. // // 7、接待员获取ta的主页信息
  204. // rpc PartnerGetHomeInfo (common.PersonParam) returns (common.HomeInfo){
  205. // option (google.api.http) = {
  206. // post: "/api/partner/home",
  207. // body:"*"
  208. // };
  209. // };
  210. // // 8、接待员获取ta的主页访客、关注数
  211. // rpc PartnerGetPersonLikedAndLooked (common.PersonParam) returns (common.LookedAndLikedNum){
  212. // option (google.api.http) = {
  213. // post: "/api/partner/num",
  214. // body:"*"
  215. // };
  216. // };
  217. // // 9、查看看过我的列表
  218. // rpc FindLookList (common.ListPageRequest) returns (statistics.LookAndLikeListReply){
  219. // option (google.api.http) = {
  220. // post: "/api/partner/list/look",
  221. // body:"*"
  222. // };
  223. // };
  224. // // 10、微信SDK初始化
  225. // rpc WxConf (common.WxConfReq) returns (common.WxConfResponse){
  226. // option (google.api.http) = {
  227. // post: "/api/wx/jssdk/config",
  228. // body:"*"
  229. // };
  230. // };
  231. // // 11、获取标签列表
  232. // rpc FindTagListBySex (common.SexReq) returns (common.TagListReply){
  233. // option (google.api.http) = {
  234. // post: "/api/partner/list/tag",
  235. // body:"*"
  236. // };
  237. // };
  238. // // 12、获取在线列表
  239. // rpc FindOnlineList (common.ListPage2Request) returns (common.RecommendPersonListReply){
  240. // option (google.api.http) = {
  241. // post: "/api/partner/list/online",
  242. // body:"*"
  243. // };
  244. // };
  245. // // 13、七天内列表(当前会话)
  246. // rpc FindWithinSevenDayRoomList (common.ListPageRequest) returns (chat.PartnerFindRoomListReply){
  247. // option (google.api.http) = {
  248. // post: "/api/partner/list/chat/within",
  249. // body:"*"
  250. // };
  251. // };
  252. // // 14、七天外列表(更早的聊天记录)
  253. // rpc FindOverSevenDayRoomList (common.ListPageRequest) returns (chat.PartnerFindRoomListReply){
  254. // option (google.api.http) = {
  255. // post: "/api/partner/list/chat/over",
  256. // body:"*"
  257. // };
  258. // };
  259. // // 15、接待者查询聊天记录
  260. // rpc FindChatRecordList (common.FindChatRecordListRequest) returns (common.ChatRecordListReply){
  261. // option (google.api.http) = {
  262. // post: "/api/partner/chat/record",
  263. // body:"*"
  264. // };
  265. // };
  266. // // 16、接待者查询房间信息
  267. // rpc FindChatRoomMsg (common.FindChatRoomMsgRequest) returns (common.ChatRoomMsg){
  268. // option (google.api.http) = {
  269. // post: "/api/partner/chat/room/msg",
  270. // body:"*"
  271. // };
  272. // };
  273. // // 17、接待员查询是否关注某人
  274. // rpc GetPartnerIsLike (common.PersonParam) returns (common.IsLike){
  275. // option (google.api.http) = {
  276. // post: "/api/partner/islike",
  277. // body:"*"
  278. // };
  279. // };
  280. // // 18、通过类型获取表情包列表
  281. // rpc FindMemeByType (common.MemeRequest) returns (common.MemeList){
  282. // option (google.api.http) = {
  283. // post: "/api/partner/find/meme/type",
  284. // body:"*"
  285. // };
  286. // };
  287. // // 19、获取对方性别的聊天话题
  288. // rpc FindChatTopic (common.FindChatTopicRequest) returns (common.ChatTopicList){
  289. // option (google.api.http) = {
  290. // post: "/api/partner/find/topic",
  291. // body:"*"
  292. // };
  293. // };
  294. // // 20、随机表情包
  295. // rpc RandomMeme (common.RandomNum) returns (common.CommonTextList){
  296. // option (google.api.http) = {
  297. // post: "/api/partner/find/meme/random",
  298. // body:"*"
  299. // };
  300. // };
  301. // // 21、随机打招呼
  302. // rpc RandomSwiftMessage (common.RandomNumAndSex) returns (common.CommonTextList){
  303. // option (google.api.http) = {
  304. // post: "/api/partner/find/topic/random",
  305. // body:"*"
  306. // };
  307. // };
  308. // // 22、表情包分类名
  309. // rpc FindMemeTitle (google.protobuf.Empty) returns (common.MemeTitleList){
  310. // option (google.api.http) = {
  311. // post: "/api/partner/find/meme/title",
  312. // body:"*"
  313. // };
  314. // };
  315. // // 24、聊天话题分类名
  316. // rpc FindChatTopicTitle (google.protobuf.Empty) returns (common.MemeTitleList){
  317. // option (google.api.http) = {
  318. // post: "/api/partner/find/chat/title",
  319. // body:"*"
  320. // };
  321. // };
  322. // // 25、接待员关注某人
  323. // rpc PartnerLike(common.PersonParam) returns (google.protobuf.Empty){
  324. // option (google.api.http) = {
  325. // post: "/api/partner/like",
  326. // body:"*"
  327. // };
  328. // };
  329. // // 26、接待员取关某人
  330. // rpc PartnerUnLike(common.PersonParam) returns (google.protobuf.Empty){
  331. // option (google.api.http) = {
  332. // post: "/api/partner/unlike",
  333. // body:"*"
  334. // };
  335. // };
  336. // // 27、举报某人
  337. // rpc Report (common.ReportChatRequest) returns (google.protobuf.Empty){
  338. // option (google.api.http) = {
  339. // post: "/api/partner/report",
  340. // body:"*"
  341. // };
  342. // };
  343. // // 28、超过七天的头像列表
  344. // rpc FindOverSevenDayAvatar (google.protobuf.Empty) returns (common.FindOverSevenDayAvatarReply){
  345. // option (google.api.http) = {
  346. // post: "/api/partner/over/avatar/list",
  347. // body:"*"
  348. // };
  349. // };
  350. // // 29、更新上次访问的小纸条
  351. // rpc UpdateLastScripID (common.UpdateLastScripIDRequest) returns (google.protobuf.Empty){
  352. // option (google.api.http) = {
  353. // post: "/api/partner/scrip/last/update",
  354. // body:"*"
  355. // };
  356. // };
  357. // // 30、创建纸条
  358. // rpc CreateScrip (CreateScripRequest) returns (common.ScripID){
  359. // option (google.api.http) = {
  360. // post: "/api/partner/scrip/create",
  361. // body:"*"
  362. // };
  363. // };
  364. // // 31、删除纸条
  365. // rpc DeleteScrip (common.ScripIdRequest) returns (google.protobuf.Empty){
  366. // option (google.api.http) = {
  367. // post: "/api/partner/scrip/delete",
  368. // body:"*"
  369. // };
  370. // };
  371. // // 32、查询自己的小纸条
  372. // rpc FindMyScrip (common.ListPageRequest) returns (common.ScripReply){
  373. // option (google.api.http) = {
  374. // post: "/api/partner/scrip/find/self",
  375. // body:"*"
  376. // };
  377. // };
  378. // // 33、查询别人的小纸条
  379. // rpc FindOtherScrip (common.FindScripRequest) returns (common.ScripReply){
  380. // option (google.api.http) = {
  381. // post: "/api/partner/scrip/find/other",
  382. // body:"*"
  383. // };
  384. // };
  385. // // 34、查询随机纸条列表
  386. // rpc FindRecommendScrip (common.ListPageRequest) returns (common.ScripReply){
  387. // option (google.api.http) = {
  388. // post: "/api/partner/scrip/find/recommend",
  389. // body:"*"
  390. // };
  391. // };
  392. // // 35、用户查看纸条
  393. // rpc PersonLookScrip (common.ScripIdRequest) returns (google.protobuf.Empty){
  394. // option (google.api.http) = {
  395. // post: "/api/partner/scrip/look",
  396. // body:"*"
  397. // };
  398. // };
  399. // // 36、用户点击回看
  400. // rpc PersonClickLookBack (google.protobuf.Empty) returns (common.ScripInfo){
  401. // option (google.api.http) = {
  402. // post: "/api/partner/scrip/look/back",
  403. // body:"*"
  404. // };
  405. // };
  406. // // 37、用户回复小纸条
  407. // rpc PersonReplyScrip (ReplyScripRequest) returns (common.ChatRecordInfo){
  408. // option (google.api.http) = {
  409. // post: "/api/partner/scrip/reply",
  410. // body:"*"
  411. // };
  412. // };
  413. // // 38、用户删除房间
  414. // rpc PartnerDeleteChat (common.RoomIDRequest) returns (google.protobuf.Empty){
  415. // option (google.api.http) = {
  416. // post: "/api/partner/chat/delete",
  417. // body:"*"
  418. // };
  419. // };
  420. // // 39、获取用户的总未读数
  421. // rpc GetPartnerAllUnreadNum (google.protobuf.Empty) returns (chat.UnreadNumReply){
  422. // option (google.api.http) = {
  423. // post: "/api/partner/chat/unread/num",
  424. // body:"*"
  425. // };
  426. // };
  427. // // 40、接待员查询与某人的房间
  428. // rpc GetPartnerRoomByPerson (common.PersonParam) returns (chat.PartnerRoomInfo){
  429. // option (google.api.http) = {
  430. // post: "/api/partner/room/info",
  431. // body:"*"
  432. // };
  433. // };
  434. // // 41、查看我喜欢的列表
  435. // rpc FindLikeList (common.ListPageRequest) returns (statistics.LookAndLikeListReply){
  436. // option (google.api.http) = {
  437. // post: "/api/partner/list/like",
  438. // body:"*"
  439. // };
  440. // };
  441. // // 42、查看喜欢我的列表
  442. // rpc FindLikedList (common.ListPageRequest) returns (statistics.LookAndLikeListReply){
  443. // option (google.api.http) = {
  444. // post: "/api/partner/list/liked",
  445. // body:"*"
  446. // };
  447. // };
  448. //
  449. //
  450. // // // 拉黑某人
  451. // // rpc PartnerSetBlackChat (common.RoomIDRequest) returns (google.protobuf.Empty){
  452. // // option (google.api.http) = {
  453. // // post: "/api/partner/set/black",
  454. // // body:"*"
  455. // // };
  456. // // };
  457. //
  458. // // ---接待员专用---
  459. // // 接待员收藏某条记录
  460. // rpc PartnerCollect (PartnerCollectIDsRequest) returns (google.protobuf.Empty){
  461. // option (google.api.http) = {
  462. // post: "/api/partner/collect",
  463. // body:"*"
  464. // };
  465. // };
  466. // // 接待员取消收藏某条记录
  467. // rpc PartnerDeleteCollect (PartnerCollectRequest) returns (google.protobuf.Empty){
  468. // option (google.api.http) = {
  469. // post: "/api/partner/collect/delete",
  470. // body:"*"
  471. // };
  472. // };
  473. // // 查询接待员在本房间的收藏列表
  474. // rpc FindChatCollectList (common.FindChatRecordListRequest) returns (common.ChatRecordListReply){
  475. // option (google.api.http) = {
  476. // post: "/api/partner/collect/list",
  477. // body:"*"
  478. // };
  479. // };
  480. // // 获取接待员的部分信息
  481. // rpc GetPartnerMessage (google.protobuf.Empty) returns (PartnerMessage){
  482. // option (google.api.http) = {
  483. // post: "/api/partner/message",
  484. // body:"*"
  485. // };
  486. // };
  487. // // 获取接待员访问数详情
  488. // rpc GetPartnerLookNum (google.protobuf.Empty) returns (statistics.LookMessageReply){
  489. // option (google.api.http) = {
  490. // post: "/api/partner/num/look",
  491. // body:"*"
  492. // };
  493. // };
  494. // // 未读列表(排队中)
  495. // rpc FindUnReplyRoomList (common.ListPageRequest) returns (chat.PartnerFindRoomListReply){
  496. // option (google.api.http) = {
  497. // post: "/api/partner/list/chat/unreply",
  498. // body:"*"
  499. // };
  500. // };
  501. // // 获取等级对应收益表
  502. // rpc GetLevelBalanceTable (google.protobuf.Empty) returns (LevelTable){
  503. // option (google.api.http) = {
  504. // post: "/api/partner/level/table",
  505. // body:"*"
  506. // };
  507. // };
  508. // // 接待员领取开通奖励
  509. // rpc PartnerGetAward (PartnerGetAwardRequest) returns (google.protobuf.Empty){
  510. // option (google.api.http) = {
  511. // post: "/api/partner/chat/award",
  512. // body:"*"
  513. // };
  514. // };
  515. // // 接待员更新工作状态
  516. // rpc PartnerUpdateWorkingStatus (PartnerUpdateWorkingStatusRequest) returns (google.protobuf.Empty){
  517. // option (google.api.http) = {
  518. // post: "/api/partner/working/status/update",
  519. // body:"*"
  520. // };
  521. // };
  522. // // 查询未处理的数据
  523. // rpc FindNotReplyNum (google.protobuf.Empty) returns (chat.FindNotReplyNumReply){
  524. // option (google.api.http) = {
  525. // post: "/api/partner/chat/unreply/num",
  526. // body:"*"
  527. // };
  528. // };
  529. // // 接待员申请提现
  530. // rpc PartnerApplyWithdraw (PartnerApplyWithdrawRequest) returns (google.protobuf.Empty){
  531. // option (google.api.http) = {
  532. // post: "/api/partner/withdraw",
  533. // body:"*"
  534. // };
  535. // };
  536. // // 接待员提现模板列表
  537. // rpc PartnerWithdrawTemplateList (google.protobuf.Empty) returns (PartnerWithdrawTemplateListReply){
  538. // option (google.api.http) = {
  539. // post: "/api/partner/withdraw/template/list",
  540. // body:"*"
  541. // };
  542. // };
  543. // // 接待员提现记录列表
  544. // rpc PartnerWithdrawRecordList (common.ListPageRequest) returns (PartnerWithdrawRecordListReply){
  545. // option (google.api.http) = {
  546. // post: "/api/partner/withdraw/record/list",
  547. // body:"*"
  548. // };
  549. // };
  550. // // 接待员获取房间收益以及今日收益
  551. // rpc PartnerGetRoomBalanceAndTodayBalance (common.RoomIDRequest) returns (PartnerGetRoomBalanceAndTodayBalanceReply){
  552. // option (google.api.http) = {
  553. // post: "/api/partner/balance/room",
  554. // body:"*"
  555. // };
  556. // };
  557. // // 接待员注册
  558. // rpc PartnerRegister (common.UpdateInformationRequest) returns (google.protobuf.Empty){
  559. // option (google.api.http) = {
  560. // post: "/api/partner/register",
  561. // body:"*"
  562. // };
  563. // };
  564. // // ---rpc---
  565. // // 1、获取用户详情
  566. // rpc GetPartnerDBMsg (common.PersonIDParam) returns (common.PersonMsg);
  567. // // 2、通过接待员IDs查看接待员信息列表
  568. // rpc FindPartnerDBList (common.PersonIDList) returns (common.PersonDBReply);
  569. // // 3、对内更新
  570. // rpc UpdateLastScripIDDB (common.UpdateLastScripIDDBRequest) returns (google.protobuf.Empty){};
  571. // // 4、查询推荐用户的数据
  572. // rpc FindRecommendPartnerDBList (common.FindRecommendRequest) returns (common.PersonDBReply){};
  573. // // 5、更新上次登录时间
  574. // rpc UpdatePartnerLastLoginTime (common.PersonIDParam) returns (google.protobuf.Empty){};
  575. // // 6、通过userID查询用户
  576. // rpc GetPartnerDBMsgByPartner (common.IDParam) returns (common.PersonMsg);
  577. //
  578. // // 获取接待员金额
  579. // rpc GetPartnerDBBalance (common.PartnerIDParam) returns (PartnerDBBalance){}
  580. // // 增加接待员金额
  581. // rpc AddPartnerBalance(AddPartnerBalanceRequest) returns (google.protobuf.Empty){};
  582. // // 获取接待员的确认通过页面信息
  583. // rpc GetPartnerCircleInfo (common.PartnerIDParam) returns (common.AddFriendMessageInfo);
  584. // // 获取一个推荐用户
  585. // rpc GetRecommendPartnerDB (GetRecommendPartnerDBRequest) returns (common.PersonDB){};
  586. // // 有未接待过的新用户发来消息(包括小纸条被未接待过的新用户回复)发送模板消息
  587. // rpc SendNewUserSendMessage (common.PersonIDParam) returns (google.protobuf.Empty){};
  588. // // 接待过的用户发来新消息 发送模板消息
  589. // rpc SendOverOneMinuteUnreadMessageMessage (SendOverOneMinuteUnreadMessageMessageRequest) returns (google.protobuf.Empty){};
  590. }
  591. message OnlinePersonReply{
  592. int64 userManNum = 1; // 男用户在线数
  593. int64 userWomanNum = 2; // 女用户在线数
  594. int64 userOtherNum = 3; // 未填写性别的用户在线数
  595. }
  596. message SendOverOneMinuteUnreadMessageMessageRequest{
  597. string personID = 1;
  598. int64 unreadNum = 2;
  599. repeated string nameList = 3;
  600. }
  601. message GetRecommendPartnerDBRequest{
  602. string type = 1;// 类型
  603. int64 sex = 2;
  604. repeated string identifyIds = 3; // 匹配过的identifyID
  605. }
  606. message FindExamineRecordListRequest{
  607. int64 nextId = 1;
  608. int64 offset = 2;
  609. string status = 3;// 审核状态
  610. int64 pid = 4; // 陪伴员的ID(number)
  611. }
  612. message FindExamineRecordListReply{
  613. int64 nextId = 1;
  614. repeated ExamineRecordInfo list = 2;
  615. }
  616. message ExamineRecordInfo{
  617. string partnerId = 1;// 接待员ID(string)
  618. string nickname = 2; // 昵称
  619. string avatarUrl = 3;// 头像
  620. string introduceVoice = 4;// 介绍语音的链接
  621. string signature = 5;// 介绍(签名)
  622. repeated string pictures = 6;// 相册(主页图片)
  623. int64 sex = 7;// 性别
  624. int64 pid = 8;// 接待员ID(number)
  625. string examineStatus = 9;//审核状态
  626. int64 id = 10;//id
  627. int64 age = 11;// 年龄
  628. string constellation = 12; // 星座
  629. int64 createTime = 13; // 创建时间
  630. }
  631. message FindExamineListReply{
  632. string nextId = 1;
  633. repeated ExamineInfo list = 2;
  634. }
  635. message ExamineInfo{
  636. string partnerId = 1;// 接待员ID(string)
  637. string nickname = 2; // 昵称
  638. string avatarUrl = 3;// 头像
  639. string introduceVoice = 4;// 介绍语音的链接
  640. string signature = 5;// 介绍(签名)
  641. repeated string pictures = 6;// 相册(主页图片)
  642. int64 sex = 7;// 性别
  643. int64 pid = 8;// 接待员ID(number)
  644. int64 age = 9;// 年龄
  645. string constellation = 10; // 星座
  646. string wxNickname = 11; // 昵称
  647. string wxAvatarUrl = 12;// 头像
  648. }
  649. message ExaminePartnerRequest{
  650. string partnerId = 1;// 接待员ID
  651. bool isPass = 2;// 是否审核通过
  652. }
  653. message PartnerGetRoomBalanceAndTodayBalanceReply{
  654. int64 todayProfit = 1;// 今日收益
  655. int64 roomProfit = 2;// 房间收益
  656. }
  657. message PartnerCollectIDsRequest{
  658. repeated int64 chatRecordIds = 1;// 记录ID
  659. int64 roomId = 2;// 房间ID
  660. }
  661. message PartnerCollectRequest{
  662. int64 chatRecordId = 1;// 记录ID
  663. }
  664. message CreateScripRequest {
  665. string text = 1;// 纸条内容
  666. string pictureUrl = 2; // 纸条背景图
  667. }
  668. message ReplyScripRequest {
  669. int64 scripId = 4;// 小纸条ID
  670. common.Message message = 5;// 回复内容 只需要提供 回复小纸条的内容 或 回复小纸条的素材链接
  671. string msgType = 6;
  672. }
  673. message PartnerWithdrawRecordListReply{
  674. int64 nextId = 1;
  675. repeated WithdrawInfo list = 2;
  676. }
  677. message WithdrawInfo{
  678. int64 id = 1;// 记录ID
  679. int64 money = 2;// 提现多少钱
  680. int64 credit = 3;// 提现需要多少积分
  681. string status = 4;// 状态
  682. string result = 5;// 结果
  683. int64 createTime = 6;// 创建时间
  684. int64 successTime = 7;// 成功时间
  685. }
  686. message PartnerWithdrawTemplateListReply{
  687. repeated PartnerWithdrawTemplateInfo list = 1;
  688. }
  689. message PartnerWithdrawTemplateInfo {
  690. int64 id = 1;
  691. int64 money = 2;// 提现多少钱
  692. int64 credit = 3;// 提现需要多少积分
  693. string title = 4;// 提现的标题
  694. }
  695. message PartnerUpdateWorkingStatusRequest{
  696. string workingStatus = 1;// 工作状态
  697. }
  698. message PartnerGetAwardRequest{
  699. string awardType = 1;// 奖励类型
  700. string personID = 2; // 查询目标的ID
  701. string personType = 3; // 类型
  702. }
  703. message LevelTable{
  704. repeated LevelInfo list = 1;
  705. }
  706. message LevelInfo{
  707. int64 level = 1;// 等级
  708. int64 chatBenefit = 2;// 聊天收益
  709. int64 callBenefit = 3;// 语音通话收益
  710. string condition = 4;// 达成条件
  711. }
  712. message AddPartnerBalanceRequest{
  713. string partnerId = 1;
  714. int64 balance = 2;
  715. }
  716. message PartnerInfo{
  717. string id = 1; // id
  718. string nickname = 2;// 昵称
  719. string avatarUrl =3;// 头像链接
  720. int64 age = 4;// 年龄
  721. int64 sex = 5;// 性别
  722. string constellation = 6; // 星座
  723. int64 level = 7;// 等级
  724. repeated int64 tagList = 8; // 标签
  725. string signature = 9; // 签名
  726. string introduceVoice = 10; // 介绍语音
  727. string province = 11;// 省
  728. string city = 12;// 市
  729. string area = 13;// 区
  730. int64 partnerId = 14;// 接待员ID
  731. bool isBlack = 15;// 是否被封号
  732. string workingStatus = 16;// 工作状态
  733. string registerStatus = 17;// 审核状态
  734. }
  735. message PartnerMessage{
  736. string id = 1; // id
  737. int64 lookNum = 2; // 看过我的数量
  738. int64 lookUnreadNum = 3; // 未读的看过我的数量
  739. int64 todayReceptionNum = 4;// 今日接待人数
  740. string reversionRate = 5;// 五分钟的回复率
  741. int64 likedNum = 6;// 喜欢我
  742. int64 likedUnreadNum = 7;// 喜欢我的未读数
  743. repeated string avatarUrlList = 8;// 头像列表
  744. int64 likeNum = 9;// 我喜欢
  745. }
  746. message PartnerBalance{
  747. string id = 1; // id
  748. int64 balance = 2;// 可提现余额
  749. int64 todayProfit = 3;// 今日收益
  750. int64 level = 4;// 等级
  751. int64 chatBenefit = 5;// 聊天收益
  752. int64 callBenefit = 6;// 语音通话收益
  753. string upLevelCondition = 7;// 升级条件
  754. int64 upLevelBenefit = 8;// 升级需要的收益
  755. int64 cumulativeIncome = 9;// 累计收益
  756. }
  757. message PartnerDBBalance{
  758. string id = 1; // id
  759. int64 level = 2;// 等级
  760. int64 chatBenefit = 3;// 聊天收益
  761. int64 callBenefit = 4;// 语音通话收益
  762. }
  763. message PartnerApplyWithdrawRequest{
  764. int64 templateId = 1;// 提现模板id
  765. }