partner.proto 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648
  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. // // 拉黑某人
  294. // rpc PartnerSetBlackChat (common.RoomIDRequest) returns (google.protobuf.Empty){
  295. // option (google.api.http) = {
  296. // post: "/api/partner/set/black",
  297. // body:"*"
  298. // };
  299. // };
  300. // ---接待员专用---
  301. // 接待员收藏某条记录
  302. rpc PartnerCollect (PartnerCollectIDsRequest) returns (google.protobuf.Empty){
  303. option (google.api.http) = {
  304. post: "/api/partner/collect",
  305. body:"*"
  306. };
  307. };
  308. // 接待员取消收藏某条记录
  309. rpc PartnerDeleteCollect (PartnerCollectRequest) returns (google.protobuf.Empty){
  310. option (google.api.http) = {
  311. post: "/api/partner/collect/delete",
  312. body:"*"
  313. };
  314. };
  315. // 查询接待员在本房间的收藏列表
  316. rpc FindChatCollectList (common.FindChatRecordListRequest) returns (common.ChatRecordListReply){
  317. option (google.api.http) = {
  318. post: "/api/partner/collect/list",
  319. body:"*"
  320. };
  321. };
  322. // 获取接待员的部分信息
  323. rpc GetPartnerMessage (google.protobuf.Empty) returns (PartnerMessage){
  324. option (google.api.http) = {
  325. post: "/api/partner/message",
  326. body:"*"
  327. };
  328. };
  329. // 获取接待员访问数详情
  330. rpc GetPartnerLookNum (google.protobuf.Empty) returns (statistics.LookMessageReply){
  331. option (google.api.http) = {
  332. post: "/api/partner/num/look",
  333. body:"*"
  334. };
  335. };
  336. // 未读列表(排队中)
  337. rpc FindUnReplyRoomList (common.ListPageRequest) returns (chat.PartnerFindRoomListReply){
  338. option (google.api.http) = {
  339. post: "/api/partner/list/chat/unreply",
  340. body:"*"
  341. };
  342. };
  343. // 获取等级对应收益表
  344. rpc GetLevelBalanceTable (google.protobuf.Empty) returns (LevelTable){
  345. option (google.api.http) = {
  346. post: "/api/partner/level/table",
  347. body:"*"
  348. };
  349. };
  350. // 接待员领取开通奖励
  351. rpc PartnerGetAward (PartnerGetAwardRequest) returns (google.protobuf.Empty){
  352. option (google.api.http) = {
  353. post: "/api/partner/chat/award",
  354. body:"*"
  355. };
  356. };
  357. // 接待员更新工作状态
  358. rpc PartnerUpdateWorkingStatus (PartnerUpdateWorkingStatusRequest) returns (google.protobuf.Empty){
  359. option (google.api.http) = {
  360. post: "/api/partner/working/status/update",
  361. body:"*"
  362. };
  363. };
  364. // 查询未处理的数据
  365. rpc FindNotReplyNum (google.protobuf.Empty) returns (chat.FindNotReplyNumReply){
  366. option (google.api.http) = {
  367. post: "/api/partner/chat/unreply/num",
  368. body:"*"
  369. };
  370. };
  371. // 接待员申请提现
  372. rpc PartnerApplyWithdraw (PartnerApplyWithdrawRequest) returns (google.protobuf.Empty){
  373. option (google.api.http) = {
  374. post: "/api/partner/withdraw",
  375. body:"*"
  376. };
  377. };
  378. // 接待员提现模板列表
  379. rpc PartnerWithdrawTemplateList (google.protobuf.Empty) returns (PartnerWithdrawTemplateListReply){
  380. option (google.api.http) = {
  381. post: "/api/partner/withdraw/template/list",
  382. body:"*"
  383. };
  384. };
  385. // 接待员提现记录列表
  386. rpc PartnerWithdrawRecordList (common.ListPageRequest) returns (PartnerWithdrawRecordListReply){
  387. option (google.api.http) = {
  388. post: "/api/partner/withdraw/record/list",
  389. body:"*"
  390. };
  391. };
  392. // 接待员获取房间收益以及今日收益
  393. rpc PartnerGetRoomBalanceAndTodayBalance (common.RoomIDRequest) returns (PartnerGetRoomBalanceAndTodayBalanceReply){
  394. option (google.api.http) = {
  395. post: "/api/partner/balance/room",
  396. body:"*"
  397. };
  398. };
  399. // 接待员注册
  400. rpc PartnerRegister (common.UpdateInformationRequest) returns (google.protobuf.Empty){
  401. option (google.api.http) = {
  402. post: "/api/partner/register",
  403. body:"*"
  404. };
  405. };
  406. // 接待员审核列表
  407. rpc FindExamineList (common.ListPage2Request) returns (FindExamineListReply){
  408. option (google.api.http) = {
  409. post: "/api/partner/register/examine/list",
  410. body:"*"
  411. };
  412. };
  413. // 接待员审核
  414. rpc ExaminePartner (ExaminePartnerRequest) returns (google.protobuf.Empty){
  415. option (google.api.http) = {
  416. post: "/api/partner/register/examine",
  417. body:"*"
  418. };
  419. };
  420. // 管理员登录
  421. rpc ManagerLogin (common.ManagerLoginRequest) returns (common.LoginToken){
  422. option (google.api.http) = {
  423. post: "/api/manager/login",
  424. body:"*"
  425. };
  426. };
  427. // 审核记录列表
  428. rpc FindExamineRecordList (FindExamineRecordListRequest) returns (FindExamineRecordListReply){
  429. option (google.api.http) = {
  430. post: "/api/manager/register/examine/record/list",
  431. body:"*"
  432. };
  433. };
  434. // ---rpc---
  435. // 1、获取用户详情
  436. rpc GetPartnerDBMsg (common.PersonIDParam) returns (common.PersonMsg);
  437. // 2、通过接待员IDs查看接待员信息列表
  438. rpc FindPartnerDBList (common.PersonIDList) returns (common.PersonDBReply);
  439. // 3、对内更新
  440. rpc UpdateLastScripIDDB (common.UpdateLastScripIDDBRequest) returns (google.protobuf.Empty){};
  441. // 4、查询推荐用户的数据
  442. rpc FindRecommendPartnerDBList (common.FindRecommendRequest) returns (common.PersonDBReply){};
  443. // 5、更新上次登录时间
  444. rpc UpdatePartnerLastLoginTime (common.PersonIDParam) returns (google.protobuf.Empty){};
  445. // 获取接待员金额
  446. rpc GetPartnerDBBalance (common.PartnerIDParam) returns (PartnerDBBalance){}
  447. // 增加接待员金额
  448. rpc AddPartnerBalance(AddPartnerBalanceRequest) returns (google.protobuf.Empty){};
  449. // 获取接待员的确认通过页面信息
  450. rpc GetPartnerCircleInfo (common.PartnerIDParam) returns (common.AddFriendMessageInfo);
  451. // 获取一个推荐用户
  452. rpc GetRecommendPartnerDB (GetRecommendPartnerDBRequest) returns (common.PersonDB){};
  453. // 有未接待过的新用户发来消息(包括小纸条被未接待过的新用户回复)发送模板消息
  454. rpc SendNewUserSendMessage (common.PersonIDParam) returns (google.protobuf.Empty){};
  455. }
  456. message GetRecommendPartnerDBRequest{
  457. string type = 1;// 类型
  458. int64 sex = 2;
  459. repeated string identifyIds = 3; // 匹配过的identifyID
  460. }
  461. message FindExamineRecordListRequest{
  462. int64 nextId = 1;
  463. int64 offset = 2;
  464. string status = 3;// 审核状态
  465. int64 pid = 4; // 陪伴员的ID(number)
  466. }
  467. message FindExamineRecordListReply{
  468. int64 nextId = 1;
  469. repeated ExamineRecordInfo list = 2;
  470. }
  471. message ExamineRecordInfo{
  472. string partnerId = 1;// 接待员ID(string)
  473. string nickname = 2; // 昵称
  474. string avatarUrl = 3;// 头像
  475. string introduceVoice = 4;// 介绍语音的链接
  476. string signature = 5;// 介绍(签名)
  477. repeated string pictures = 6;// 相册(主页图片)
  478. int64 sex = 7;// 性别
  479. int64 pid = 8;// 接待员ID(number)
  480. string examineStatus = 9;//审核状态
  481. int64 id = 10;//id
  482. int64 age = 11;// 年龄
  483. string constellation = 12; // 星座
  484. int64 createTime = 13; // 创建时间
  485. }
  486. message FindExamineListReply{
  487. string nextId = 1;
  488. repeated ExamineInfo list = 2;
  489. }
  490. message ExamineInfo{
  491. string partnerId = 1;// 接待员ID(string)
  492. string nickname = 2; // 昵称
  493. string avatarUrl = 3;// 头像
  494. string introduceVoice = 4;// 介绍语音的链接
  495. string signature = 5;// 介绍(签名)
  496. repeated string pictures = 6;// 相册(主页图片)
  497. int64 sex = 7;// 性别
  498. int64 pid = 8;// 接待员ID(number)
  499. int64 age = 9;// 年龄
  500. string constellation = 10; // 星座
  501. string wxNickname = 11; // 昵称
  502. string wxAvatarUrl = 12;// 头像
  503. }
  504. message ExaminePartnerRequest{
  505. string partnerId = 1;// 接待员ID
  506. bool isPass = 2;// 是否审核通过
  507. }
  508. message PartnerGetRoomBalanceAndTodayBalanceReply{
  509. int64 todayProfit = 1;// 今日收益
  510. int64 roomProfit = 2;// 房间收益
  511. }
  512. message PartnerCollectIDsRequest{
  513. repeated int64 chatRecordIds = 1;// 记录ID
  514. int64 roomId = 2;// 房间ID
  515. }
  516. message PartnerCollectRequest{
  517. int64 chatRecordId = 1;// 记录ID
  518. }
  519. message CreateScripRequest {
  520. string text = 1;// 纸条内容
  521. string pictureUrl = 2; // 纸条背景图
  522. }
  523. message ReplyScripRequest {
  524. int64 scripId = 4;// 小纸条ID
  525. common.Message message = 5;// 回复内容 只需要提供 回复小纸条的内容 或 回复小纸条的素材链接
  526. string msgType = 6;
  527. }
  528. message PartnerWithdrawRecordListReply{
  529. int64 nextId = 1;
  530. repeated WithdrawInfo list = 2;
  531. }
  532. message WithdrawInfo{
  533. int64 id = 1;// 记录ID
  534. int64 money = 2;// 提现多少钱
  535. int64 credit = 3;// 提现需要多少积分
  536. string status = 4;// 状态
  537. string result = 5;// 结果
  538. int64 createTime = 6;// 创建时间
  539. int64 successTime = 7;// 成功时间
  540. }
  541. message PartnerWithdrawTemplateListReply{
  542. repeated PartnerWithdrawTemplateInfo list = 1;
  543. }
  544. message PartnerWithdrawTemplateInfo {
  545. int64 id = 1;
  546. int64 money = 2;// 提现多少钱
  547. int64 credit = 3;// 提现需要多少积分
  548. string title = 4;// 提现的标题
  549. }
  550. message PartnerUpdateWorkingStatusRequest{
  551. string workingStatus = 1;// 工作状态
  552. }
  553. message PartnerGetAwardRequest{
  554. string awardType = 1;// 奖励类型
  555. string personID = 2; // 查询目标的ID
  556. string personType = 3; // 类型
  557. }
  558. message LevelTable{
  559. repeated LevelInfo list = 1;
  560. }
  561. message LevelInfo{
  562. int64 level = 1;// 等级
  563. int64 chatBenefit = 2;// 聊天收益
  564. int64 callBenefit = 3;// 语音通话收益
  565. string condition = 4;// 达成条件
  566. }
  567. message AddPartnerBalanceRequest{
  568. string partnerId = 1;
  569. int64 balance = 2;
  570. }
  571. message PartnerInfo{
  572. string id = 1; // id
  573. string nickname = 2;// 昵称
  574. string avatarUrl =3;// 头像链接
  575. int64 age = 4;// 年龄
  576. int64 sex = 5;// 性别
  577. string constellation = 6; // 星座
  578. int64 level = 7;// 等级
  579. repeated int64 tagList = 8; // 标签
  580. string signature = 9; // 签名
  581. string introduceVoice = 10; // 介绍语音
  582. string province = 11;// 省
  583. string city = 12;// 市
  584. string area = 13;// 区
  585. int64 partnerId = 14;// 接待员ID
  586. bool isBlack = 15;// 是否被封号
  587. string workingStatus = 16;// 工作状态
  588. string registerStatus = 17;// 审核状态
  589. }
  590. message PartnerMessage{
  591. string id = 1; // id
  592. int64 lookNum = 2; // 看过我的数量
  593. int64 lookUnreadNum = 3; // 未读的看过我的数量
  594. int64 todayReceptionNum = 4;// 今日接待人数
  595. string reversionRate = 5;// 五分钟的回复率
  596. }
  597. message PartnerBalance{
  598. string id = 1; // id
  599. int64 balance = 2;// 可提现余额
  600. int64 todayProfit = 3;// 今日收益
  601. int64 level = 4;// 等级
  602. int64 chatBenefit = 5;// 聊天收益
  603. int64 callBenefit = 6;// 语音通话收益
  604. string upLevelCondition = 7;// 升级条件
  605. int64 upLevelBenefit = 8;// 升级需要的收益
  606. int64 cumulativeIncome = 9;// 累计收益
  607. }
  608. message PartnerDBBalance{
  609. string id = 1; // id
  610. int64 level = 2;// 等级
  611. int64 chatBenefit = 3;// 聊天收益
  612. int64 callBenefit = 4;// 语音通话收益
  613. }
  614. message PartnerApplyWithdrawRequest{
  615. int64 templateId = 1;// 提现模板id
  616. }