common.proto 25 KB

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