partner.proto 23 KB

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