common.proto 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949
  1. syntax = "proto3";
  2. package api.common;
  3. //import "google/api/annotations.proto";
  4. //import "google/protobuf/struct.proto";
  5. //import "google/protobuf/empty.proto";
  6. option go_package = "git.ikuban.com/server/pw-protobuf/api/common;common";
  7. option java_multiple_files = true;
  8. option java_package = "api.common";
  9. message UserAndPartnerIdentifyIdParam {
  10. string partnerIdentifyId = 1;
  11. string userIdentifyId = 2;
  12. }
  13. message UserAndPartnerParam {
  14. string partnerId = 1;
  15. string partnerIdentifyID = 2; // 身份ID
  16. string userId = 3;
  17. string userIdentifyID = 4; // 身份ID
  18. }
  19. message User1AndUser2IdParam {
  20. string user1 = 1;
  21. string user2 = 2;
  22. }
  23. message PartnerIDParam {
  24. string partnerID = 1;
  25. }
  26. message PersonIDParam {
  27. string personID = 1;
  28. }
  29. message IDParam{
  30. int64 id = 1;
  31. }
  32. message PersonParam{
  33. string personID = 1; // 查询目标的ID
  34. }
  35. message CreateChatRoomParam{
  36. string personID = 1; // 查询目标的ID
  37. string source = 3;// 来源
  38. }
  39. message ChatCardInfo{
  40. string id = 1; // id
  41. string nickname = 2;// 昵称
  42. string avatarUrl =3;// 头像链接
  43. int64 sex = 4;// 性别
  44. int64 age = 6; // 年龄
  45. string constellation = 7; // 星座
  46. repeated string list = 9; // 相册列表
  47. string introduceVoice = 10; // 介绍语音
  48. string province = 11;// 省
  49. string city = 12;// 市
  50. string area = 13;// 区
  51. bool isFinishInformation = 14;//是否完善资料
  52. string signature = 15;// 签名
  53. bool isVip = 22;// 是否是Vip
  54. int64 vipLevel = 23;// vip等级
  55. bool isYearVip = 24;// 是否是年费Vip
  56. repeated string vipFunctions = 25;// vip功能
  57. }
  58. message UserIDParam {
  59. string userId = 1;
  60. }
  61. message WxConfReq {
  62. string url = 1;
  63. }
  64. message WxConfResponse{
  65. string appId = 1; // 必填,公众号的唯一标识
  66. int64 timestamp = 2; // 必填,生成签名的时间戳
  67. string nonceStr = 3;// 必填,生成签名的随机串
  68. string signature = 4;// 必填,签名
  69. string url = 5;// 传入的url
  70. }
  71. // 主页信息
  72. message HomeInfo{
  73. string id = 1; // id
  74. string nickname = 2;// 昵称
  75. string avatarUrl =3;// 头像链接
  76. int64 sex = 4;// 性别
  77. repeated string pictures = 5; // 图片
  78. int64 age = 6; // 年龄
  79. string constellation = 7; // 星座
  80. repeated TagList tagList = 8; // 标签
  81. string signature = 9; // 签名
  82. string introduceVoice = 10; // 介绍语音
  83. string province = 11;// 省
  84. string city = 12;// 市
  85. string area = 13;// 区
  86. bool isBlack = 14;// 是否被封号
  87. int64 UpdateNicknameNum = 17;// 今日更新昵称数
  88. int64 UpdateAvatarUrlNum = 18;// 今日更新头像数
  89. int64 UpdatePicturesNum = 19; // 今日更新相册数
  90. int64 UpdateSignatureNum = 20; // 今日更新签名数
  91. bool isSuperLove = 21;// 是否是超级喜欢
  92. bool isVip = 22;// 是否是Vip
  93. int64 vipLevel = 23;// vip等级
  94. bool isYearVip = 24;// 是否是年费Vip
  95. repeated string vipFunctions = 25;// vip功能
  96. }
  97. message PersonMsg {
  98. string id = 1; // id
  99. string nickname = 2;// 昵称
  100. string avatarUrl =3;// 头像链接
  101. int64 sex = 4;// 性别
  102. repeated string pictures = 5; // 图片
  103. int64 age = 6; // 年龄
  104. string constellation = 7; // 星座
  105. repeated int64 tagList = 8; // 标签
  106. string signature = 9; // 签名
  107. string introduceVoice = 10; // 介绍语音
  108. string province = 11;// 省
  109. string city = 12;// 市
  110. string area = 13;// 区
  111. bool isFinishInformation = 14; // 是否完成注册
  112. bool isBlack = 15;// 是否被封禁
  113. int64 weight = 16;// 权重
  114. string workingStatus = 17;// 工作状态
  115. int64 lastScripID = 18;// 上次观看小纸条ID
  116. }
  117. message LookedAndLikedNum{
  118. string id = 1; // id
  119. int64 lookedNum = 2; // 看过ta的数量
  120. int64 likedNum = 3;// 喜欢ta的数量
  121. }
  122. // 添加好友页面信息
  123. message AddFriendMessageInfo{
  124. string id = 1; // id
  125. string nickname = 2;// 昵称
  126. string avatarUrl =3;// 头像链接
  127. int64 sex = 4;// 性别
  128. repeated string pictures = 5; // 图片
  129. string fromOpenId = 6;// 来源公众号对应的openID
  130. bool isRegister = 7;// 是否注册
  131. bool isChat = 8;// 是否聊天
  132. bool isFromUs = 9;// 是否是来源我们
  133. string fromAppId = 10;// 来源公众号对应的appID
  134. string fromName = 11;// 来源公众号对应的公众号名称
  135. string constellation = 12; // 星座
  136. string signature = 13;// 介绍(签名)
  137. string province = 14;// 省
  138. string city = 15;// 市
  139. string area = 16;// 区
  140. int64 roomId = 17;// 聊过天的话返回房间ID
  141. bool isVip = 18; // 是否是vip
  142. int64 vipLevel = 19;// vip 等级
  143. bool isYearVip = 20;// 是否是年费vip
  144. repeated string vipFunctions = 22;// vip功能
  145. }
  146. message PersonIDList{
  147. repeated string personIds = 1;
  148. }
  149. message PersonDBReply{
  150. repeated PersonDB list = 1;
  151. }
  152. message PersonDB{
  153. string id = 1; // id
  154. string nickname = 2;// 昵称
  155. string avatarUrl =3;// 头像链接
  156. int64 sex = 4;// 性别
  157. repeated string pictures = 5; // 图片
  158. int64 age = 6; // 年龄
  159. string constellation = 7; // 星座
  160. string introduceVoice = 8; // 介绍语音
  161. string province = 9;// 省
  162. string city = 10;// 市
  163. string area = 11;// 区
  164. string signature = 12;//介绍
  165. bool isFinishInformation = 13;//是否完善消息
  166. repeated int64 tagList = 14;// 标签列表
  167. int64 personId = 16;// 用户id(number)
  168. bool isBlack = 17;// 是否是黑名单用户
  169. }
  170. message PersonDBDetails{
  171. string id = 1; // id
  172. string nickname = 2;// 昵称
  173. string avatarUrl =3;// 头像链接
  174. int64 sex = 4;// 性别
  175. repeated string pictures = 5; // 图片
  176. int64 age = 6; // 年龄
  177. string constellation = 7; // 星座
  178. string introduceVoice = 8; // 介绍语音
  179. string province = 9;// 省
  180. string city = 10;// 市
  181. string area = 11;// 区
  182. string signature = 12;//介绍
  183. bool isFinishInformation = 13;//是否完善消息
  184. repeated int64 tagList = 14;// 标签列表
  185. int64 personId = 16;// 用户id(number)
  186. bool isBlack = 17;// 是否是黑名单用户
  187. int64 todaySendUnreadReminderNum = 18;
  188. int64 lastSendTemplateTime = 19;
  189. int64 todaySendVisitorReminderNum = 20;
  190. }
  191. message GetUserDBAndInitReq{
  192. string personId = 1;
  193. bool isInit = 2;
  194. }
  195. message ScripIdRequest {
  196. int64 scripId = 1;// 纸条id
  197. }
  198. message ListPageRequest{
  199. int64 nextId = 1;
  200. int64 offset = 2;
  201. }
  202. message ListPageAndSexRequest{
  203. int64 nextId = 1;
  204. int64 offset = 2;
  205. int64 sex = 3;// 对方的性别
  206. }
  207. message FindChatTopicRequest{
  208. string type = 1;// 话题类型
  209. int64 sex = 2;// 对方的性别
  210. }
  211. message ListPage2Request{
  212. string nextId = 1;
  213. int64 offset = 2;
  214. }
  215. message ListPageAndPersonRequest{
  216. string nextId = 1;
  217. int64 offset = 2;
  218. string personID = 3; // 查询目标的ID
  219. }
  220. message SendPhoneCodeRequest {
  221. string phone = 1;
  222. }
  223. message CheckPhoneCodeRequest {
  224. string phone = 1;
  225. string code = 2;
  226. string type = 3;
  227. }
  228. message ManagerLoginRequest{
  229. string account = 1;// 账号
  230. string password = 2;// 密码
  231. }
  232. message LoginToken{
  233. string token = 1;
  234. }
  235. message UploadMaterialResponse{
  236. string link = 1;
  237. }
  238. message Ids {
  239. repeated int64 ids = 1;// 标签ID
  240. }
  241. message TagListReply{
  242. repeated TagList list = 1;// 标签列表
  243. }
  244. message TagList{
  245. int64 id = 1; // 标签ID
  246. string name = 2;// 分组名
  247. }
  248. message SexReq{
  249. int64 sex = 1;
  250. }
  251. message GetMatchingPartnerInfoReply{
  252. string id = 1; // id
  253. string nickname = 2;// 昵称
  254. string avatarUrl =3;// 头像链接
  255. int64 sex = 4;// 性别
  256. string city = 5;// 城市
  257. }
  258. message RandomIntroduceReply{
  259. string introduce = 1;
  260. }
  261. message UpdateInformationRequest {
  262. string nickname = 1; // 昵称
  263. string avatarUrl = 2;// 头像
  264. int64 sex = 3; // 性别
  265. int64 birthday = 4;// 出生日期(毫秒级时间戳)
  266. repeated int64 tagList = 5;// 标签id列表
  267. string introduceVoice = 6;// 介绍语音的链接
  268. string signature = 7;// 介绍(签名)
  269. repeated string pictures = 8;// 相册(主页图片)
  270. string province = 9;// 省
  271. string city = 10;// 市
  272. string area = 11;// 区
  273. }
  274. message ChatRecordListReply{
  275. repeated ChatRecordInfo list = 1;
  276. int64 nextId = 2;
  277. }
  278. message ChatRoomMsg{
  279. int64 roomId = 1; // 房间ID
  280. ChatPersonMsg self = 2; // 自己的信息
  281. ChatPersonMsg other = 3; // 对方的信息
  282. int64 likeability = 5; // 对对方的好感度
  283. bool isFirstChat = 6;// 是否是第一次聊天
  284. }
  285. message ChatPersonMsg{
  286. string id = 1; // id
  287. string nickname = 3; // 昵称
  288. string avatar = 4; // 头像
  289. int64 sex = 5;// 性别
  290. bool isLove = 6;// 是否爆灯
  291. bool isVip = 15;// 是否是Vip
  292. int64 vipLevel = 16;// vip等级
  293. bool isYearVip = 17;// 是否是年费Vip
  294. repeated string vipFunctions = 22;// vip功能
  295. }
  296. message ChatRecordInfo{
  297. int64 messageId = 1; // 消息的ID
  298. string msgType = 2; // 消息类型
  299. Message message = 3; // 消息的结构
  300. int64 roomId = 4; // 房间ID
  301. bool isSelf = 5; // 是否是自己
  302. int64 sendTime = 6; // 发送时间
  303. string status = 7; // 消息状态
  304. string statusMsg = 8;// 状态说明
  305. bool isRead = 9;// 对方是否已读
  306. }
  307. message ChatIsReadInfo{
  308. int64 messageId = 1; // 消息的ID
  309. int64 roomId = 2; // 房间ID
  310. string websocketTag = 3;
  311. }
  312. message GoToRoom{
  313. int64 roomId = 1; // 房间ID
  314. string websocketTag = 2;
  315. }
  316. message Message{
  317. string content = 1; // 文本内容
  318. string materialUrl = 2; // 素材链接
  319. string scripContent = 3; // 小纸条的内容
  320. string scripMaterialUrl = 4;// 小纸条的素材链接
  321. string replyScripContent = 5; // 回复小纸条的内容
  322. string replyScripMaterialUrl = 6;// 回复小纸条的素材链接
  323. }
  324. message FindChatRoomMsgRequest{
  325. int64 roomId = 1;
  326. }
  327. message RoomIDRequest{
  328. int64 roomId = 1;
  329. }
  330. message FindChatRecordListRequest{
  331. int64 nextId = 1;
  332. int64 offset = 2;
  333. int64 roomId = 3;
  334. }
  335. message IsLike{
  336. bool isLike = 1;// 是否喜欢(关注)
  337. }
  338. message RandomNum {
  339. int64 num = 1; // 随机的数量
  340. }
  341. message RandomNumAndSex {
  342. int64 num = 1; // 随机的数量
  343. int64 sex = 2; // 对方的性别
  344. }
  345. message MemeRequest{
  346. int64 nextId = 1;
  347. int64 offset = 2;
  348. string type = 3;
  349. }
  350. message CommonTextList {
  351. repeated string list = 1;// 需要的数据集合(随机表情包、随机打招呼)
  352. }
  353. message MemeTitleList {
  354. repeated MemeTitle list = 1;// 需要的数据集合(随机表情包、随机打招呼)
  355. }
  356. message MemeTitle{
  357. string name = 1;// 名称
  358. string type = 2;// 类型
  359. }
  360. message MemeList {
  361. repeated string list = 1;// 表情包列表
  362. int64 nextId = 2;
  363. }
  364. message ChatTopicList {
  365. repeated string list = 1;// 话题列表
  366. }
  367. message ReportChatRequest{
  368. string reportMsg = 1;// 举报的详情
  369. string type = 2;// 举报类型
  370. int64 messageId = 3;// 举报对象的ID(纸条、房间)
  371. string reportedPersonId = 4; // 被举报的人的ID
  372. string contactInformation = 6; // 联系方式
  373. repeated string picture = 7; // 图片
  374. repeated string category = 8; // 类别
  375. }
  376. message ReportRequest{
  377. string type = 1;// 举报类型
  378. string personId = 2; // 发起举报的人的ID
  379. int64 messageId = 3;// 举报对象的ID(纸条、房间)
  380. string reportedPersonId = 5; // 被举报的人的ID
  381. string contactInformation = 7; // 联系方式
  382. repeated string picture = 8; // 图片
  383. repeated string category = 9; // 类别
  384. string reportMsg = 10;// 举报的详情
  385. }
  386. message RoomChatMsg{
  387. string source = 6;// 来源
  388. string type = 7;// 类型(新客:new,付费:pay)
  389. int64 benefit = 8;// 收益
  390. bool isUnlockVoice = 9;// 是否解锁语音
  391. bool isUnlockPicture = 10;// 是否解锁图片
  392. int64 unlockVoicePrice = 11;// 解锁语音奖励
  393. int64 unlockPicturePrice = 12;// 解锁图片奖励
  394. bool isGetVoicePrice = 13; // 是否领取了语音奖励
  395. bool isGetPicturePrice = 14; // 是否领取了图片奖励
  396. }
  397. message RecommendPersonListReply{
  398. repeated RecommendPersonInfo manList = 1; // 男生列表
  399. repeated RecommendPersonInfo womanList = 2;// 女生列表
  400. }
  401. message HandpickPersonListReply{
  402. repeated HandpickPersonInfo manList = 1; // 男生列表
  403. repeated HandpickPersonInfo womanList = 2;// 女生列表
  404. }
  405. message HandpickPersonInfo{
  406. string personID = 1; // 查询目标的ID
  407. string nickname = 3;// 昵称
  408. string avatarUrl =4;// 头像链接
  409. int64 sex = 5;// 性别
  410. int64 age = 6; // 年龄
  411. string constellation = 7; // 星座
  412. string signature = 8; // 签名
  413. string province = 9;// 省
  414. string city = 10;// 市
  415. string area = 11;// 区
  416. string introduceVoice = 12;// 介绍语音
  417. bool isOnline = 14; // 是否在线
  418. bool isVip = 15;// 是否是Vip
  419. int64 vipLevel = 16;// vip等级
  420. bool isYearVip = 17;// 是否是年费Vip
  421. repeated string vipFunctions = 22;// vip功能
  422. string picture = 23;// 精选图片
  423. }
  424. message RecommendPersonInfo{
  425. string personID = 1; // 查询目标的ID
  426. string nickname = 3;// 昵称
  427. string avatarUrl =4;// 头像链接
  428. int64 sex = 5;// 性别
  429. int64 age = 6; // 年龄
  430. string constellation = 7; // 星座
  431. string signature = 8; // 签名
  432. string province = 9;// 省
  433. string city = 10;// 市
  434. string area = 11;// 区
  435. string introduceVoice = 12;// 介绍语音
  436. repeated string tagList = 13;// 标签
  437. bool isOnline = 14; // 是否在线
  438. bool isVip = 15;// 是否是Vip
  439. int64 vipLevel = 16;// vip等级
  440. bool isYearVip = 17;// 是否是年费Vip
  441. repeated string vipFunctions = 22;// vip功能
  442. repeated string pictures = 23;// 相册
  443. }
  444. message FindOverSevenDayAvatarReply{
  445. repeated string list = 1;// 头像列表
  446. }
  447. message PersonLookScripRequest{
  448. string personId = 1;
  449. int64 scripId = 3;// 纸条id
  450. }
  451. message FindScripRequest {
  452. string personId = 1;
  453. string province = 2;
  454. int64 nextId = 3;
  455. int64 offset = 4;
  456. }
  457. message FindOtherScripRequest {
  458. string personId = 1;
  459. string myPersonId = 3;
  460. int64 nextId = 5;
  461. int64 offset = 6;
  462. }
  463. message ScripReply {
  464. repeated ScripInfo list = 1;
  465. int64 nextId = 2;
  466. }
  467. message ScripInfo {
  468. int64 scripId = 1;// 纸条ID
  469. string personId = 2;// 创建者ID
  470. string text = 4;// 纸条内容
  471. string pictureUrl = 5;// 纸条配图
  472. string personName = 6;// 创建者名称
  473. int64 personSex = 7;// 创建者性别
  474. int64 personAge = 8;// 创建者性别
  475. string personAvatar = 9;// 创建者头像
  476. int64 replyNum = 10;// 回复数
  477. bool isCanReply = 11;// 是否可以回复
  478. ScripReplyMessage myReply = 12;// 我的回复内容
  479. int64 createTime = 13;// 创建时间
  480. string constellation = 14; // 星座
  481. bool isVip = 19;// 是否是Vip
  482. int64 vipLevel = 20;// vip等级
  483. bool isYearVip = 21;// 是否是年费Vip
  484. repeated string vipFunctions = 22;// vip功能
  485. string province = 23;// 省份
  486. string city = 24;// 市
  487. int64 watchNum = 25;// 浏览次数
  488. int64 starNum = 26;// 点赞次数
  489. bool isStar = 27;// 是否点赞
  490. }
  491. message ScripReplyMessage{
  492. string messageType = 1;// 小纸条回复的类型
  493. string scripContent = 2;// 小纸条回复的文本内容
  494. string scripPictureUrl = 3;// 小纸条回复的图片链接
  495. }
  496. message DeleteScripRequest {
  497. int64 id = 1;
  498. string personId = 2;
  499. }
  500. message CreateScripRequest {
  501. string personId = 1;
  502. bool isMiniProgram = 2;
  503. string text = 4;
  504. string pictureUrl = 5;
  505. string appId = 7;
  506. string openId = 8;
  507. bool isOldVersion = 9;
  508. bool isVip = 10;
  509. string province = 11;
  510. string city = 12;
  511. int64 age = 13;
  512. int64 sex = 14;
  513. string constellation = 15;
  514. }
  515. message ScripID {
  516. int64 id = 1;
  517. }
  518. message ReplyScripRequest {
  519. string personId = 1;
  520. int64 scripId = 4; // 小纸条ID
  521. Message message = 5; // 回复内容
  522. string msgType = 6;
  523. bool isOldVersion = 9;
  524. }
  525. message ReplyStarRequest {
  526. string personId = 1;
  527. int64 scripId = 4; // 小纸条ID
  528. }
  529. message UpdateLastScripIDRequest{
  530. int64 scripId = 2;// 纸条id
  531. }
  532. message UpdateLastScripIDDBRequest{
  533. string personId = 1;
  534. int64 scripId = 2;// 纸条id
  535. }
  536. message MatchingRequest{
  537. string personId = 1; // 查询目标的ID
  538. int64 sex = 4;// 性别
  539. bool isNeedCheckSex = 5;// 是否跟性别强相关
  540. string province = 7;// 省
  541. string city = 8;// 市
  542. int64 maxAge = 9;// 最大年龄
  543. int64 minAge = 10;// 最小年龄
  544. }
  545. message UserIDsParam{
  546. string myUserID = 1;
  547. string otherUserID = 2;
  548. }
  549. message ManagerFindPersonListReply {
  550. repeated ManagerFindPersonInfo list = 1;
  551. string nextId = 2;
  552. int64 total = 3;
  553. }
  554. message ManagerFindPersonListReply2 {
  555. repeated ManagerFindPersonInfo list = 1;
  556. bool last = 2;
  557. int64 total = 3;
  558. int64 page = 4;
  559. int64 pageSize = 5;
  560. }
  561. message ManagerFindPersonListRequest{
  562. string nextId = 1;
  563. int64 offset = 2;
  564. int64 id = 3;// 用户ID
  565. string name = 4;// 姓名
  566. int64 sex = 5; // 性别
  567. bool isFinishInformation = 6;// 是否筛选完善过资料的人
  568. int64 startTime = 7;// 筛选开始时间
  569. int64 endTime = 8;// 筛选结束时间
  570. bool isBlack = 9;// 是否筛选拉黑用户
  571. bool isHighQuality = 10;// 是否是优质用户
  572. bool isSelectByActivity = 11;// 是否按活跃时间来筛选
  573. }
  574. message ManagerFindPersonInfo {
  575. string id = 1;
  576. string nickname = 2;// 昵称
  577. string avatarUrl =3;// 头像链接
  578. int64 sex = 4;// 性别
  579. repeated string pictures = 5; // 图片
  580. int64 age = 6; // 年龄
  581. string constellation = 7; // 星座
  582. int64 credit = 8;// 积分
  583. string signature = 9; // 签名
  584. string introduceVoice = 10; // 介绍语音
  585. string province = 11;// 省
  586. string city = 12;// 市
  587. int64 personId = 13; // 用户id(Number)
  588. bool isHighQuality = 14;// 是否是优质用户
  589. bool isBlack = 15;// 是否被封禁
  590. int64 weight = 16;// 权重
  591. int64 lastLoginTime = 17;// 上次登录时间
  592. string blackDetails = 18;// 拉黑理由(只有被拉黑的用户才会有)
  593. bool isVip = 19;// 是否是Vip
  594. int64 vipLevel = 20;// vip等级
  595. bool isYearVip = 21;// 是否是年费Vip
  596. repeated string vipFunctions = 22;// vip功能
  597. bool isHandpickUser = 23;// 是否是精选
  598. string handpickPicture = 24;// 精选图片
  599. string phone = 25;// 手机号
  600. }
  601. message ManagerUpdatePersonVoiceRequest {
  602. string personId = 1;// Id (string)
  603. string introduceVoice = 2;// 语音
  604. }
  605. message ManagerUpdatePersonPicturesRequest {
  606. string personId = 1;// Id (string)
  607. repeated string pictures = 2;// 相册(主页图片)
  608. }
  609. message ManagerUpdatePersonSignatureRequest {
  610. string personId = 1;// Id (string)
  611. string signature = 2;// 介绍(签名)
  612. }
  613. message ManagerUpdatePersonAvatarRequest {
  614. string personId = 1;// Id (string)
  615. string avatarUrl = 2;// 头像
  616. }
  617. message ManagerUpdatePersonNameRequest {
  618. string personId = 1;// Id (string)
  619. string nickname = 2; // 昵称
  620. }
  621. message ManagerUpdatePersonWeightRequest{
  622. string personId = 1;// Id (string)
  623. int64 weight = 2;// 权重等级
  624. }
  625. message ManagerUpdatePersonIsBlackRequest{
  626. string personId = 1;// Id (string)
  627. bool isBlack = 2;// 是否拉黑
  628. }
  629. message ManagerFindRoomListRequest{
  630. int64 roomId = 1;//房间ID
  631. int64 personId = 2;//用户ID
  632. int64 nextId = 3;
  633. int64 offset = 4;
  634. }
  635. message ManagerFindRoomListReply{
  636. repeated RoomInfo list = 1;
  637. int64 nextId = 2;
  638. }
  639. message RoomInfo{
  640. string person1Id = 1;// 用户1ID
  641. int64 person1UnreadNum = 3;// 用户1未读数
  642. int64 person1SendNum = 4;// 用户1发送数
  643. string person1AvatarUrl = 5;// 用户1头像
  644. string person1Nickname = 6;// 用户1昵称
  645. int64 person1Age = 7;// 用户1年龄
  646. int64 person1Sex = 8;// 用户1性别
  647. string person2Id = 9;// 用户2ID
  648. int64 person2UnreadNum = 11;// 用户2未读数
  649. int64 person2SendNum = 12;// 用户2发送数
  650. string person2AvatarUrl = 13;// 用户2头像
  651. string person2Nickname = 14;// 用户2昵称
  652. int64 person2Age = 15;// 用户2年龄
  653. int64 person2Sex = 16;// 用户2性别
  654. string lastContent = 17;// 上次发送内容
  655. int64 lastTime = 18;// 上次发送时间
  656. int64 likeability = 19;// 好感度
  657. int64 roomId = 20; // 房间ID
  658. int64 userId1 = 21; // 用户的ID1
  659. int64 userId2 = 22;// 用户的ID2
  660. }
  661. message ManagerFindChatRecordListRequest{
  662. int64 nextId = 1;
  663. int64 offset = 2;
  664. int64 roomId = 3;
  665. string personID = 5; // 查询目标的ID
  666. }
  667. message ManagerUpdateScripTextRequest{
  668. int64 scripId = 1;
  669. string text = 2;// 纸条内容
  670. }
  671. message ManagerUpdateScripPictureRequest{
  672. int64 scripId = 1;
  673. string pictureUrl = 2;// 纸条配图链接
  674. }
  675. message ManagerFindScripListRequest{
  676. int64 nextId = 1;
  677. int64 offset = 2;
  678. int64 scripId = 3;
  679. int64 personId = 4;//用户ID (number)
  680. }
  681. message ManagerScripReply {
  682. repeated ManagerScripInfo list = 1;
  683. int64 nextId = 2;
  684. }
  685. message ManagerFindScripListV2Request{
  686. int64 page = 1;
  687. int64 pageSize = 2;
  688. int64 scripId = 3;
  689. int64 personId = 4;//用户ID (number)
  690. }
  691. message ManagerScripV2Reply {
  692. repeated ManagerScripInfo list = 1;
  693. bool last = 2;
  694. int64 total = 3;
  695. int64 page = 4;
  696. int64 pageSize = 5;
  697. }
  698. message ManagerScripInfo {
  699. int64 scripId = 1;// 纸条ID
  700. string personId = 2;// 创建者ID
  701. string text = 4;// 纸条内容
  702. string pictureUrl = 5;// 纸条配图
  703. string personName = 6;// 创建者名称
  704. int64 personSex = 7;// 创建者性别
  705. int64 personAge = 8;// 创建者性别
  706. string personAvatar = 9;// 创建者头像
  707. int64 replyNum = 10;// 回复数
  708. int64 createTime = 12;// 创建时间
  709. string constellation = 13; // 星座
  710. int64 id = 14;// id(number)
  711. }
  712. message ManagerFindReportListRequest{
  713. int64 nextId = 1;
  714. int64 offset = 2;
  715. }
  716. message ManagerFindReportListReply{
  717. repeated ManagerFindReportInfo list = 1;
  718. int64 nextId = 2;
  719. }
  720. message ManagerFindReportInfo {
  721. int64 id = 1;// 举报的ID
  722. string personId = 2;// 被举报者的ID
  723. int64 num = 4;// 被举报的次数
  724. string personName = 6;// 被举报者的名称
  725. int64 personSex = 7;// 被举报者的性别
  726. int64 personAge = 8;// 被举报者的年龄
  727. string personAvatar = 9;// 被举报者的头像
  728. }
  729. message ManagerFindReportDetailsListRequest{
  730. int64 nextId = 1;
  731. int64 offset = 2;
  732. string personId = 3;// 被举报人的ID
  733. }
  734. message ManagerFindReportDetailsListReply{
  735. repeated ManagerFindReportDetailsInfo list = 1;
  736. int64 nextId = 2;
  737. }
  738. message ManagerFindReportDetailsInfo{
  739. int64 id = 1;// 举报详情的ID
  740. string personId = 2;// 被举报者的ID
  741. int64 accountId = 3;// 被举报者的ID(number)
  742. string personName = 4;// 被举报者的昵称
  743. string personAvatar = 5;// 被举报者的头像
  744. string reportPersonId = 6;// 举报者的ID
  745. int64 reportAccountId = 7;// 举报者的ID(number)
  746. string reportPersonName = 8;// 举报者的昵称
  747. string reportPersonAvatar = 9;// 举报者的头像
  748. string reportResult = 10;// 被举报的理由
  749. repeated string reportPicture = 11;// 被举报的图片
  750. repeated string category = 12;// 举报的类型
  751. int64 createTime = 13;// 举报时间
  752. int64 typeId = 14;// 聊天房间ID
  753. string type = 15;// 报错类型
  754. }
  755. message GetLoginConfigRequest{
  756. string appid = 1;
  757. }
  758. message GetLoginConfigReply{
  759. string appid = 1;
  760. }
  761. message SendMessageReply{
  762. bool isSelfOnline = 1;// 自己是否在线
  763. }
  764. message ManagerFindCanHandpickUserListRequest{
  765. string nextId = 1;
  766. int64 offset = 2;
  767. bool isHandpickUser = 3; // 是则筛选 已经是精选的用户 否则筛选还未检查过的优质用户
  768. }
  769. message ManagerSetHandpickUserRequest{
  770. repeated SetHandpickUserInfo passList = 1;
  771. repeated SetHandpickUserInfo unPassList = 2;
  772. }
  773. message ManagerSetHandpickUserOneRequest{
  774. string userId = 1;
  775. string picture = 2;
  776. bool isHandpickUser = 3;
  777. }
  778. message SetHandpickUserInfo{
  779. string userId = 1;
  780. string picture = 2;
  781. }
  782. message ManagerFindCanHandpickUserListReply{
  783. repeated ManagerFindCanHandpickUserInfo list = 1;
  784. string nextId = 2;
  785. int64 total = 3;
  786. }
  787. message ManagerFindCanHandpickUserInfo{
  788. string id = 1;
  789. string nickname = 2;// 昵称
  790. string avatarUrl =3;// 头像链接
  791. int64 sex = 4;// 性别
  792. repeated string pictures = 5; // 图片
  793. int64 age = 6; // 年龄
  794. string constellation = 7; // 星座
  795. int64 credit = 8;// 积分
  796. string signature = 9; // 签名
  797. string introduceVoice = 10; // 介绍语音
  798. string province = 11;// 省
  799. string city = 12;// 市
  800. int64 personId = 13; // 用户id(Number)
  801. bool isHighQuality = 14;// 是否是优质用户
  802. bool isBlack = 15;// 是否被封禁
  803. int64 weight = 16;// 权重
  804. int64 lastLoginTime = 17;// 上次登录时间
  805. string blackDetails = 18;// 拉黑理由(只有被拉黑的用户才会有)
  806. bool isVip = 19;// 是否是Vip
  807. int64 vipLevel = 20;// vip等级
  808. bool isYearVip = 21;// 是否是年费Vip
  809. repeated string vipFunctions = 22;// vip功能
  810. bool isHandpickUser = 23;// 是否是精选
  811. string handpickPicture = 24;// 精选图片
  812. }
  813. message SendMessageRequest{
  814. int64 roomId = 1;// 房间ID
  815. Message message = 2;// 消息
  816. string msgType = 3;// 消息类型
  817. string websocketTag = 4;
  818. string userId = 5;
  819. int64 accountId = 6;
  820. bool isMiniProgram = 7;
  821. string appid = 8;
  822. }
  823. message TokenMessage{
  824. int64 accountId = 1;
  825. }