partner.proto 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691
  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. // 接待员审核列表
  421. rpc FindExamineList (common.ListPage2Request) returns (FindExamineListReply){
  422. option (google.api.http) = {
  423. post: "/api/partner/register/examine/list",
  424. body:"*"
  425. };
  426. };
  427. // 接待员审核
  428. rpc ExaminePartner (ExaminePartnerRequest) returns (google.protobuf.Empty){
  429. option (google.api.http) = {
  430. post: "/api/partner/register/examine",
  431. body:"*"
  432. };
  433. };
  434. // 管理员登录
  435. rpc ManagerLogin (common.ManagerLoginRequest) returns (common.LoginToken){
  436. option (google.api.http) = {
  437. post: "/api/manager/login",
  438. body:"*"
  439. };
  440. };
  441. // 审核记录列表
  442. rpc FindExamineRecordList (FindExamineRecordListRequest) returns (FindExamineRecordListReply){
  443. option (google.api.http) = {
  444. post: "/api/manager/register/examine/record/list",
  445. body:"*"
  446. };
  447. };
  448. // 当前在线人
  449. rpc OnlinePerson (google.protobuf.Empty) returns (OnlinePersonReply){
  450. option (google.api.http) = {
  451. post: "/api/manager/online/person",
  452. body:"*"
  453. };
  454. };
  455. // ---rpc---
  456. // 1、获取用户详情
  457. rpc GetPartnerDBMsg (common.PersonIDParam) returns (common.PersonMsg);
  458. // 2、通过接待员IDs查看接待员信息列表
  459. rpc FindPartnerDBList (common.PersonIDList) returns (common.PersonDBReply);
  460. // 3、对内更新
  461. rpc UpdateLastScripIDDB (common.UpdateLastScripIDDBRequest) returns (google.protobuf.Empty){};
  462. // 4、查询推荐用户的数据
  463. rpc FindRecommendPartnerDBList (common.FindRecommendRequest) returns (common.PersonDBReply){};
  464. // 5、更新上次登录时间
  465. rpc UpdatePartnerLastLoginTime (common.PersonIDParam) returns (google.protobuf.Empty){};
  466. // 获取接待员金额
  467. rpc GetPartnerDBBalance (common.PartnerIDParam) returns (PartnerDBBalance){}
  468. // 增加接待员金额
  469. rpc AddPartnerBalance(AddPartnerBalanceRequest) returns (google.protobuf.Empty){};
  470. // 获取接待员的确认通过页面信息
  471. rpc GetPartnerCircleInfo (common.PartnerIDParam) returns (common.AddFriendMessageInfo);
  472. // 获取一个推荐用户
  473. rpc GetRecommendPartnerDB (GetRecommendPartnerDBRequest) returns (common.PersonDB){};
  474. // 有未接待过的新用户发来消息(包括小纸条被未接待过的新用户回复)发送模板消息
  475. rpc SendNewUserSendMessage (common.PersonIDParam) returns (google.protobuf.Empty){};
  476. // 接待过的用户发来新消息 发送模板消息
  477. rpc SendOverOneMinuteUnreadMessageMessage (SendOverOneMinuteUnreadMessageMessageRequest) returns (google.protobuf.Empty){};
  478. }
  479. message OnlinePersonReply{
  480. int64 userManNum = 1; // 男用户在线数
  481. int64 userWomanNum = 2; // 女用户在线数
  482. int64 partnerManNum = 3; // 男接待员在线数
  483. int64 partnerWomanNum = 4; // 女接待员在线数
  484. int64 userOtherNum = 5; // 未填写性别的用户在线数
  485. int64 partnerOtherNum = 6; // 未填写性别的接待员在线数
  486. }
  487. message SendOverOneMinuteUnreadMessageMessageRequest{
  488. string personID = 1;
  489. int64 unreadNum = 2;
  490. repeated string nameList = 3;
  491. }
  492. message GetRecommendPartnerDBRequest{
  493. string type = 1;// 类型
  494. int64 sex = 2;
  495. repeated string identifyIds = 3; // 匹配过的identifyID
  496. }
  497. message FindExamineRecordListRequest{
  498. int64 nextId = 1;
  499. int64 offset = 2;
  500. string status = 3;// 审核状态
  501. int64 pid = 4; // 陪伴员的ID(number)
  502. }
  503. message FindExamineRecordListReply{
  504. int64 nextId = 1;
  505. repeated ExamineRecordInfo list = 2;
  506. }
  507. message ExamineRecordInfo{
  508. string partnerId = 1;// 接待员ID(string)
  509. string nickname = 2; // 昵称
  510. string avatarUrl = 3;// 头像
  511. string introduceVoice = 4;// 介绍语音的链接
  512. string signature = 5;// 介绍(签名)
  513. repeated string pictures = 6;// 相册(主页图片)
  514. int64 sex = 7;// 性别
  515. int64 pid = 8;// 接待员ID(number)
  516. string examineStatus = 9;//审核状态
  517. int64 id = 10;//id
  518. int64 age = 11;// 年龄
  519. string constellation = 12; // 星座
  520. int64 createTime = 13; // 创建时间
  521. }
  522. message FindExamineListReply{
  523. string nextId = 1;
  524. repeated ExamineInfo list = 2;
  525. }
  526. message ExamineInfo{
  527. string partnerId = 1;// 接待员ID(string)
  528. string nickname = 2; // 昵称
  529. string avatarUrl = 3;// 头像
  530. string introduceVoice = 4;// 介绍语音的链接
  531. string signature = 5;// 介绍(签名)
  532. repeated string pictures = 6;// 相册(主页图片)
  533. int64 sex = 7;// 性别
  534. int64 pid = 8;// 接待员ID(number)
  535. int64 age = 9;// 年龄
  536. string constellation = 10; // 星座
  537. string wxNickname = 11; // 昵称
  538. string wxAvatarUrl = 12;// 头像
  539. }
  540. message ExaminePartnerRequest{
  541. string partnerId = 1;// 接待员ID
  542. bool isPass = 2;// 是否审核通过
  543. }
  544. message PartnerGetRoomBalanceAndTodayBalanceReply{
  545. int64 todayProfit = 1;// 今日收益
  546. int64 roomProfit = 2;// 房间收益
  547. }
  548. message PartnerCollectIDsRequest{
  549. repeated int64 chatRecordIds = 1;// 记录ID
  550. int64 roomId = 2;// 房间ID
  551. }
  552. message PartnerCollectRequest{
  553. int64 chatRecordId = 1;// 记录ID
  554. }
  555. message CreateScripRequest {
  556. string text = 1;// 纸条内容
  557. string pictureUrl = 2; // 纸条背景图
  558. }
  559. message ReplyScripRequest {
  560. int64 scripId = 4;// 小纸条ID
  561. common.Message message = 5;// 回复内容 只需要提供 回复小纸条的内容 或 回复小纸条的素材链接
  562. string msgType = 6;
  563. }
  564. message PartnerWithdrawRecordListReply{
  565. int64 nextId = 1;
  566. repeated WithdrawInfo list = 2;
  567. }
  568. message WithdrawInfo{
  569. int64 id = 1;// 记录ID
  570. int64 money = 2;// 提现多少钱
  571. int64 credit = 3;// 提现需要多少积分
  572. string status = 4;// 状态
  573. string result = 5;// 结果
  574. int64 createTime = 6;// 创建时间
  575. int64 successTime = 7;// 成功时间
  576. }
  577. message PartnerWithdrawTemplateListReply{
  578. repeated PartnerWithdrawTemplateInfo list = 1;
  579. }
  580. message PartnerWithdrawTemplateInfo {
  581. int64 id = 1;
  582. int64 money = 2;// 提现多少钱
  583. int64 credit = 3;// 提现需要多少积分
  584. string title = 4;// 提现的标题
  585. }
  586. message PartnerUpdateWorkingStatusRequest{
  587. string workingStatus = 1;// 工作状态
  588. }
  589. message PartnerGetAwardRequest{
  590. string awardType = 1;// 奖励类型
  591. string personID = 2; // 查询目标的ID
  592. string personType = 3; // 类型
  593. }
  594. message LevelTable{
  595. repeated LevelInfo list = 1;
  596. }
  597. message LevelInfo{
  598. int64 level = 1;// 等级
  599. int64 chatBenefit = 2;// 聊天收益
  600. int64 callBenefit = 3;// 语音通话收益
  601. string condition = 4;// 达成条件
  602. }
  603. message AddPartnerBalanceRequest{
  604. string partnerId = 1;
  605. int64 balance = 2;
  606. }
  607. message PartnerInfo{
  608. string id = 1; // id
  609. string nickname = 2;// 昵称
  610. string avatarUrl =3;// 头像链接
  611. int64 age = 4;// 年龄
  612. int64 sex = 5;// 性别
  613. string constellation = 6; // 星座
  614. int64 level = 7;// 等级
  615. repeated int64 tagList = 8; // 标签
  616. string signature = 9; // 签名
  617. string introduceVoice = 10; // 介绍语音
  618. string province = 11;// 省
  619. string city = 12;// 市
  620. string area = 13;// 区
  621. int64 partnerId = 14;// 接待员ID
  622. bool isBlack = 15;// 是否被封号
  623. string workingStatus = 16;// 工作状态
  624. string registerStatus = 17;// 审核状态
  625. }
  626. message PartnerMessage{
  627. string id = 1; // id
  628. int64 lookNum = 2; // 看过我的数量
  629. int64 lookUnreadNum = 3; // 未读的看过我的数量
  630. int64 todayReceptionNum = 4;// 今日接待人数
  631. string reversionRate = 5;// 五分钟的回复率
  632. int64 likedNum = 6;// 喜欢我
  633. int64 likedUnreadNum = 7;// 喜欢我的未读数
  634. repeated string avatarUrlList = 8;// 头像列表
  635. int64 likeNum = 9;// 我喜欢
  636. }
  637. message PartnerBalance{
  638. string id = 1; // id
  639. int64 balance = 2;// 可提现余额
  640. int64 todayProfit = 3;// 今日收益
  641. int64 level = 4;// 等级
  642. int64 chatBenefit = 5;// 聊天收益
  643. int64 callBenefit = 6;// 语音通话收益
  644. string upLevelCondition = 7;// 升级条件
  645. int64 upLevelBenefit = 8;// 升级需要的收益
  646. int64 cumulativeIncome = 9;// 累计收益
  647. }
  648. message PartnerDBBalance{
  649. string id = 1; // id
  650. int64 level = 2;// 等级
  651. int64 chatBenefit = 3;// 聊天收益
  652. int64 callBenefit = 4;// 语音通话收益
  653. }
  654. message PartnerApplyWithdrawRequest{
  655. int64 templateId = 1;// 提现模板id
  656. }