common.proto 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763
  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. string personType = 2; // 类型
  35. }
  36. message CreateChatRoomParam{
  37. string personID = 1; // 查询目标的ID
  38. string personType = 2; // 类型
  39. string source = 3;// 来源
  40. }
  41. message ChatCardInfo{
  42. string id = 1; // id
  43. string nickname = 2;// 昵称
  44. string avatarUrl =3;// 头像链接
  45. int64 sex = 4;// 性别
  46. int64 age = 6; // 年龄
  47. string constellation = 7; // 星座
  48. repeated string list = 9; // 相册列表
  49. string introduceVoice = 10; // 介绍语音
  50. string province = 11;// 省
  51. string city = 12;// 市
  52. string area = 13;// 区
  53. bool isFinishInformation = 14;//是否完善资料
  54. string signature = 15;// 签名
  55. }
  56. message PartnerChatCardInfo{
  57. string id = 1; // id
  58. string nickname = 2;// 昵称
  59. string avatarUrl =3;// 头像链接
  60. int64 sex = 4;// 性别
  61. int64 age = 6; // 年龄
  62. string type = 7;// 类型(新客:new,付费:pay)
  63. int64 benefit = 8;// 收益
  64. bool isUnlockVoice = 9;// 是否解锁语音
  65. bool isUnlockPicture = 10;// 是否解锁图片
  66. int64 unlockVoicePrice = 11;// 解锁语音奖励
  67. int64 unlockPicturePrice = 12;// 解锁图片奖励
  68. bool isGetVoicePrice = 13; // 是否领取了语音奖励
  69. bool isGetPicturePrice = 14; // 是否领取了图片奖励
  70. bool isFinishInformation = 15;// 是否完善信息
  71. string source = 16;// 来源
  72. }
  73. message UserIDParam {
  74. string userId = 1;
  75. }
  76. message WxConfReq {
  77. string url = 1;
  78. }
  79. message WxConfResponse{
  80. string appId = 1; // 必填,公众号的唯一标识
  81. int64 timestamp = 2; // 必填,生成签名的时间戳
  82. string nonceStr = 3;// 必填,生成签名的随机串
  83. string signature = 4;// 必填,签名
  84. string url = 5;// 传入的url
  85. }
  86. // 主页信息
  87. message HomeInfo{
  88. string id = 1; // id
  89. string nickname = 2;// 昵称
  90. string avatarUrl =3;// 头像链接
  91. int64 sex = 4;// 性别
  92. repeated string pictures = 5; // 图片
  93. int64 age = 6; // 年龄
  94. string constellation = 7; // 星座
  95. repeated TagList tagList = 8; // 标签
  96. string signature = 9; // 签名
  97. string introduceVoice = 10; // 介绍语音
  98. string province = 11;// 省
  99. string city = 12;// 市
  100. string area = 13;// 区
  101. bool isBlack = 14;// 是否被封号
  102. }
  103. message PersonMsg {
  104. string id = 1; // id
  105. string nickname = 2;// 昵称
  106. string avatarUrl =3;// 头像链接
  107. int64 sex = 4;// 性别
  108. repeated string pictures = 5; // 图片
  109. int64 age = 6; // 年龄
  110. string constellation = 7; // 星座
  111. repeated int64 tagList = 8; // 标签
  112. string signature = 9; // 签名
  113. string introduceVoice = 10; // 介绍语音
  114. string province = 11;// 省
  115. string city = 12;// 市
  116. string area = 13;// 区
  117. bool isFinishInformation = 14; // 是否完成注册
  118. bool isBlack = 15;// 是否被封禁
  119. int64 weight = 16;// 权重
  120. string workingStatus = 17;// 工作状态
  121. int64 lastScripID = 18;// 上次观看小纸条ID
  122. string identifyId = 19;// 身份ID
  123. }
  124. message LookedAndLikedNum{
  125. string id = 1; // id
  126. int64 lookedNum = 2; // 看过ta的数量
  127. int64 likedNum = 3;// 喜欢ta的数量
  128. }
  129. // 添加好友页面信息
  130. message AddFriendMessageInfo{
  131. string id = 1; // id
  132. string nickname = 2;// 昵称
  133. string avatarUrl =3;// 头像链接
  134. int64 sex = 4;// 性别
  135. repeated string pictures = 5; // 图片
  136. string fromOpenId = 6;// 来源公众号对应的openID
  137. bool isRegister = 7;// 是否注册
  138. bool isChat = 8;// 是否聊天
  139. bool isFromUs = 9;// 是否是来源我们
  140. string fromAppId = 10;// 来源公众号对应的appID
  141. string fromName = 11;// 来源公众号对应的公众号名称
  142. string constellation = 12; // 星座
  143. string signature = 13;// 介绍(签名)
  144. string province = 14;// 省
  145. string city = 15;// 市
  146. string area = 16;// 区
  147. int64 roomId = 17;// 聊过天的话返回房间ID
  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. string identifyId = 15;// 身份ID
  171. }
  172. message ScripIdRequest {
  173. int64 scripId = 1;// 纸条id
  174. }
  175. message ListPageRequest{
  176. int64 nextId = 1;
  177. int64 offset = 2;
  178. }
  179. message ListPageAndSexRequest{
  180. int64 nextId = 1;
  181. int64 offset = 2;
  182. int64 sex = 3;// 对方的性别
  183. }
  184. message FindChatTopicRequest{
  185. string type = 1;// 话题类型
  186. int64 sex = 2;// 对方的性别
  187. }
  188. message ListPage2Request{
  189. string nextId = 1;
  190. int64 offset = 2;
  191. }
  192. message ListPageAndPersonRequest{
  193. string nextId = 1;
  194. int64 offset = 2;
  195. string personID = 3; // 查询目标的ID
  196. string personType = 4; // 类型
  197. }
  198. message SendPhoneCodeRequest {
  199. string phone = 1;
  200. }
  201. message CheckPhoneCodeRequest {
  202. string phone = 1;
  203. string code = 2;
  204. }
  205. message ManagerLoginRequest{
  206. string account = 1;// 账号
  207. string password = 2;// 密码
  208. }
  209. message LoginToken{
  210. string token = 1;
  211. }
  212. message UploadMaterialResponse{
  213. string link = 1;
  214. }
  215. message Ids {
  216. repeated int64 ids = 1;// 标签ID
  217. }
  218. message TagListReply{
  219. repeated TagList list = 1;// 标签列表
  220. }
  221. message TagList{
  222. int64 id = 1; // 标签ID
  223. string name = 2;// 分组名
  224. }
  225. message SexReq{
  226. int64 sex = 1;
  227. }
  228. message GetMatchingPartnerInfoReply{
  229. string id = 1; // id
  230. string nickname = 2;// 昵称
  231. string avatarUrl =3;// 头像链接
  232. int64 sex = 4;// 性别
  233. string identifyId = 5;// 身份ID
  234. }
  235. message RandomIntroduceReply{
  236. string introduce = 1;
  237. }
  238. message UpdateInformationRequest {
  239. string nickname = 1; // 昵称
  240. string avatarUrl = 2;// 头像
  241. int64 sex = 3; // 性别
  242. int64 birthday = 4;// 出生日期(毫秒级时间戳)
  243. repeated int64 tagList = 5;// 标签id列表
  244. string introduceVoice = 6;// 介绍语音的链接
  245. string signature = 7;// 介绍(签名)
  246. repeated string pictures = 8;// 相册(主页图片)
  247. string province = 9;// 省
  248. string city = 10;// 市
  249. string area = 11;// 区
  250. }
  251. message ChatRecordListReply{
  252. repeated ChatRecordInfo list = 1;
  253. int64 nextId = 2;
  254. }
  255. message ChatRoomMsg{
  256. int64 roomId = 1; // 房间ID
  257. ChatPersonMsg self = 2; // 自己的信息
  258. ChatPersonMsg other = 3; // 对方的信息
  259. int64 likeability = 5; // 对对方的好感度
  260. }
  261. message ChatPersonMsg{
  262. string id = 1; // id
  263. string type = 2; // 类型
  264. string nickname = 3; // 昵称
  265. string avatar = 4; // 头像
  266. int64 sex = 5;// 性别
  267. }
  268. message ChatRecordInfo{
  269. int64 messageId = 1; // 消息的ID
  270. string msgType = 2; // 消息类型
  271. Message message = 3; // 消息的结构
  272. int64 roomId = 4; // 房间ID
  273. bool isSelf = 5; // 是否是自己
  274. int64 sendTime = 6; // 发送时间
  275. string status = 7; // 消息状态
  276. string statusMsg = 8;// 状态说明
  277. bool isRead = 9;// 对方是否已读
  278. }
  279. message ChatIsReadInfo{
  280. int64 messageId = 1; // 消息的ID
  281. int64 roomId = 4; // 房间ID
  282. }
  283. message GoToRoom{
  284. int64 roomId = 1; // 房间ID
  285. }
  286. message Message{
  287. string content = 1; // 文本内容
  288. string materialUrl = 2; // 素材链接
  289. string scripContent = 3; // 小纸条的内容
  290. string scripMaterialUrl = 4;// 小纸条的素材链接
  291. string replyScripContent = 5; // 回复小纸条的内容
  292. string replyScripMaterialUrl = 6;// 回复小纸条的素材链接
  293. }
  294. message FindChatRoomMsgRequest{
  295. int64 roomId = 1;
  296. }
  297. message RoomIDRequest{
  298. int64 roomId = 1;
  299. }
  300. message FindChatRecordListRequest{
  301. int64 nextId = 1;
  302. int64 offset = 2;
  303. int64 roomId = 3;
  304. }
  305. message IsLike{
  306. bool isLike = 1;// 是否喜欢(关注)
  307. }
  308. message BalanceRequest{
  309. string personID = 1; // 查询目标的ID
  310. string personType = 2; // 类型
  311. int64 balance = 3;// 充值或者减少的金额
  312. }
  313. message RandomNum {
  314. int64 num = 1; // 随机的数量
  315. }
  316. message RandomNumAndSex {
  317. int64 num = 1; // 随机的数量
  318. int64 sex = 2; // 对方的性别
  319. }
  320. message MemeRequest{
  321. int64 nextId = 1;
  322. int64 offset = 2;
  323. string type = 3;
  324. }
  325. message CommonTextList {
  326. repeated string list = 1;// 需要的数据集合(随机表情包、随机打招呼)
  327. }
  328. message MemeTitleList {
  329. repeated MemeTitle list = 1;// 需要的数据集合(随机表情包、随机打招呼)
  330. }
  331. message MemeTitle{
  332. string name = 1;// 名称
  333. string type = 2;// 类型
  334. }
  335. message MemeList {
  336. repeated string list = 1;// 表情包列表
  337. int64 nextId = 2;
  338. }
  339. message ChatTopicList {
  340. repeated string list = 1;// 话题列表
  341. }
  342. message ReportChatRequest{
  343. string reportMsg = 1;// 举报的详情
  344. string reportedPersonId = 4; // 被举报的人的ID
  345. string reportedPersonType = 5; // 被举报的人的类型
  346. string contactInformation = 6; // 联系方式
  347. repeated string picture = 7; // 图片
  348. repeated string category = 8; // 类别
  349. }
  350. message ReportRequest{
  351. string identifyId = 1;// 发起举报的人的身份ID
  352. string personId = 2; // 发起举报的人的ID
  353. string personType = 3; // 发起举报的人的类型
  354. string reportedIdentifyId = 4; // 被举报的人的身份ID
  355. string reportedPersonId = 5; // 被举报的人的ID
  356. string reportedPersonType = 6; // 被举报的人的类型
  357. string contactInformation = 7; // 联系方式
  358. repeated string picture = 8; // 图片
  359. repeated string category = 9; // 类别
  360. string reportMsg = 10;// 举报的详情
  361. }
  362. message RoomChatMsg{
  363. string source = 6;// 来源
  364. string type = 7;// 类型(新客:new,付费:pay)
  365. int64 benefit = 8;// 收益
  366. bool isUnlockVoice = 9;// 是否解锁语音
  367. bool isUnlockPicture = 10;// 是否解锁图片
  368. int64 unlockVoicePrice = 11;// 解锁语音奖励
  369. int64 unlockPicturePrice = 12;// 解锁图片奖励
  370. bool isGetVoicePrice = 13; // 是否领取了语音奖励
  371. bool isGetPicturePrice = 14; // 是否领取了图片奖励
  372. }
  373. message RecommendPersonListReply{
  374. repeated RecommendPersonInfo manList = 1; // 男生列表
  375. repeated RecommendPersonInfo womanList = 2;// 女生列表
  376. }
  377. message RecommendPersonInfo{
  378. string personID = 1; // 查询目标的ID
  379. string personType = 2; // 类型
  380. string nickname = 3;// 昵称
  381. string avatarUrl =4;// 头像链接
  382. int64 sex = 5;// 性别
  383. int64 age = 6; // 年龄
  384. string constellation = 7; // 星座
  385. string signature = 8; // 签名
  386. string province = 9;// 省
  387. string city = 10;// 市
  388. string area = 11;// 区
  389. string introduceVoice = 12;// 介绍语音
  390. repeated string tagList = 13;// 标签
  391. bool isOnline = 14; // 是否在线
  392. }
  393. message FindRecommendRequest{
  394. int64 num = 1;// 数量
  395. string type = 2;// 类型
  396. int64 sex = 3;
  397. string identifyId = 4;// 发起举报的人的身份ID
  398. }
  399. message FindOverSevenDayAvatarReply{
  400. repeated string list = 1;// 头像列表
  401. }
  402. message IdentifyIdRequest{
  403. string identifyId = 1;// 发起举报的人的身份ID
  404. }
  405. message PersonLookScripRequest{
  406. string personId = 1;
  407. string personType = 2;
  408. int64 scripId = 3;// 纸条id
  409. }
  410. message FindScripRequest {
  411. string personId = 1;
  412. string personType = 2;
  413. int64 nextId = 3;
  414. int64 offset = 4;
  415. }
  416. message FindOtherScripRequest {
  417. string personId = 1;
  418. string personType = 2;
  419. string myPersonId = 3;
  420. string myPersonType = 4;
  421. int64 nextId = 5;
  422. int64 offset = 6;
  423. }
  424. message ScripReply {
  425. repeated ScripInfo list = 1;
  426. int64 nextId = 2;
  427. }
  428. message ScripInfo {
  429. int64 scripId = 1;// 纸条ID
  430. string personId = 2;// 创建者ID
  431. string personType = 3;// 创建者类型
  432. string text = 4;// 纸条内容
  433. string pictureUrl = 5;// 纸条配图
  434. string personName = 6;// 创建者名称
  435. int64 personSex = 7;// 创建者性别
  436. int64 personAge = 8;// 创建者性别
  437. string personAvatar = 9;// 创建者头像
  438. int64 replyNum = 10;// 回复数
  439. bool isCanReply = 11;// 是否可以回复
  440. ScripReplyMessage myReply = 12;// 我的回复内容
  441. int64 createTime = 13;// 创建时间
  442. string constellation = 14; // 星座
  443. }
  444. message ScripReplyMessage{
  445. string messageType = 1;// 小纸条回复的类型
  446. string scripContent = 2;// 小纸条回复的文本内容
  447. string scripPictureUrl = 3;// 小纸条回复的图片链接
  448. }
  449. message DeleteScripRequest {
  450. int64 id = 1;
  451. string personId = 2;
  452. string personType = 3;
  453. }
  454. message CreateScripRequest {
  455. string personId = 1;
  456. string personType = 2;
  457. string PersonIdentifyId = 3;
  458. string text = 4;
  459. string pictureUrl = 5;
  460. }
  461. message ScripID {
  462. int64 id = 1;
  463. }
  464. message ReplyScripRequest {
  465. string personId = 1;
  466. string personType = 2;
  467. string PersonIdentifyId = 3;
  468. int64 scripId = 4; // 小纸条ID
  469. Message message = 5; // 回复内容
  470. string msgType = 6;
  471. }
  472. message UpdateLastScripIDRequest{
  473. int64 scripId = 2;// 纸条id
  474. }
  475. message UpdateLastScripIDDBRequest{
  476. string personId = 1;
  477. int64 scripId = 2;// 纸条id
  478. }
  479. message MatchingRequest{
  480. string personId = 1; // 查询目标的ID
  481. string personType = 2; // 类型
  482. string identifyId = 3; // 身份ID
  483. int64 sex = 4;// 性别
  484. bool isNeedCheckSex = 5;// 是否跟性别强相关
  485. }
  486. message IdentifyIDsParam{
  487. string myIdentifyID = 1;
  488. string otherIdentifyID = 2;
  489. }
  490. message ManagerFindPersonListReply {
  491. repeated ManagerFindPersonInfo list = 1;
  492. string nextId = 2;
  493. }
  494. message ManagerFindPersonListRequest{
  495. string nextId = 1;
  496. int64 offset = 2;
  497. int64 id = 3;// 用户ID
  498. string name = 4;// 姓名
  499. int64 sex = 5; // 性别
  500. }
  501. message ManagerFindPersonInfo {
  502. string id = 1;
  503. string nickname = 2;// 昵称
  504. string avatarUrl =3;// 头像链接
  505. int64 sex = 4;// 性别
  506. repeated string pictures = 5; // 图片
  507. int64 age = 6; // 年龄
  508. string constellation = 7; // 星座
  509. string signature = 9; // 签名
  510. string introduceVoice = 10; // 介绍语音
  511. string province = 11;// 省
  512. string city = 12;// 市
  513. bool isBlack = 15;// 是否被封禁
  514. int64 weight = 16;// 权重
  515. int64 lastLoginTime = 17;// 上次登录时间
  516. string identifyId = 19;// 身份ID
  517. int64 personId = 13; // 用户id(Number)
  518. }
  519. message ManagerUpdatePersonVoiceRequest {
  520. string personId = 1;// Id (string)
  521. string introduceVoice = 2;// 语音
  522. }
  523. message ManagerUpdatePersonPicturesRequest {
  524. string personId = 1;// Id (string)
  525. repeated string pictures = 2;// 相册(主页图片)
  526. }
  527. message ManagerUpdatePersonSignatureRequest {
  528. string personId = 1;// Id (string)
  529. string signature = 2;// 介绍(签名)
  530. }
  531. message ManagerUpdatePersonAvatarRequest {
  532. string personId = 1;// Id (string)
  533. string avatarUrl = 2;// 头像
  534. }
  535. message ManagerUpdatePersonNameRequest {
  536. string personId = 1;// Id (string)
  537. string nickname = 2; // 昵称
  538. }
  539. message ManagerUpdatePersonWeightRequest{
  540. string personId = 1;// Id (string)
  541. int64 weight = 2;// 权重等级
  542. }
  543. message ManagerUpdatePersonIsBlackRequest{
  544. string personId = 1;// Id (string)
  545. bool isBlack = 2;// 是否拉黑
  546. }
  547. message ManagerFindRoomListRequest{
  548. int64 roomId = 1;//房间ID
  549. int64 personId = 2;//用户ID
  550. int64 nextId = 3;
  551. int64 offset = 4;
  552. }
  553. message ManagerFindRoomListReply{
  554. repeated RoomInfo list = 1;
  555. int64 nextId = 2;
  556. }
  557. message RoomInfo{
  558. string person1Id = 1;// 用户1ID
  559. string person1Type = 2;// 用户1类型
  560. int64 person1UnreadNum = 3;// 用户1未读数
  561. int64 person1SendNum = 4;// 用户1发送数
  562. string person1AvatarUrl = 5;// 用户1头像
  563. string person1Nickname = 6;// 用户1昵称
  564. int64 person1Age = 7;// 用户1年龄
  565. int64 person1Sex = 8;// 用户1性别
  566. string person2Id = 9;// 用户2ID
  567. string person2Type = 10;// 用户2类型
  568. int64 person2UnreadNum = 11;// 用户2未读数
  569. int64 person2SendNum = 12;// 用户2发送数
  570. string person2AvatarUrl = 13;// 用户2头像
  571. string person2Nickname = 14;// 用户2昵称
  572. int64 person2Age = 15;// 用户2年龄
  573. int64 person2Sex = 16;// 用户2性别
  574. string lastContent = 17;// 上次发送内容
  575. int64 lastTime = 18;// 上次发送时间
  576. int64 likeability = 19;// 好感度
  577. int64 roomId = 20; // 房间ID
  578. int64 partnerBenefit = 21;// 接待员在该房间的收益
  579. }
  580. message ManagerFindChatRecordListRequest{
  581. int64 nextId = 1;
  582. int64 offset = 2;
  583. int64 roomId = 3;
  584. string personType = 4; // 类型
  585. string personID = 5; // 查询目标的ID
  586. }
  587. message ManagerUpdateScripTextRequest{
  588. int64 scripId = 1;
  589. string text = 2;// 纸条内容
  590. }
  591. message ManagerUpdateScripPictureRequest{
  592. int64 scripId = 1;
  593. string pictureUrl = 2;// 纸条配图链接
  594. }
  595. message ManagerFindScripListRequest{
  596. int64 nextId = 1;
  597. int64 offset = 2;
  598. int64 scripId = 3;
  599. int64 personId = 4;//用户ID (number)
  600. }
  601. message ManagerScripReply {
  602. repeated ManagerScripInfo list = 1;
  603. int64 nextId = 2;
  604. }
  605. message ManagerScripInfo {
  606. int64 scripId = 1;// 纸条ID
  607. string personId = 2;// 创建者ID
  608. string personType = 3;// 创建者类型
  609. string text = 4;// 纸条内容
  610. string pictureUrl = 5;// 纸条配图
  611. string personName = 6;// 创建者名称
  612. int64 personSex = 7;// 创建者性别
  613. int64 personAge = 8;// 创建者性别
  614. string personAvatar = 9;// 创建者头像
  615. int64 replyNum = 10;// 回复数
  616. int64 createTime = 12;// 创建时间
  617. string constellation = 13; // 星座
  618. }
  619. message ManagerFindReportListRequest{
  620. int64 nextId = 1;
  621. int64 offset = 2;
  622. }
  623. message ManagerFindReportListReply{
  624. repeated ManagerFindReportInfo list = 1;
  625. int64 nextId = 2;
  626. }
  627. message ManagerFindReportInfo {
  628. int64 id = 1;// 举报的ID
  629. string personId = 2;// 被举报者的ID
  630. string personType = 3;// 被举报者的类型
  631. int64 num = 4;// 被举报的次数
  632. string personName = 6;// 被举报者的名称
  633. int64 personSex = 7;// 被举报者的性别
  634. int64 personAge = 8;// 被举报者的年龄
  635. string personAvatar = 9;// 被举报者的头像
  636. }
  637. message ManagerFindReportDetailsListRequest{
  638. int64 nextId = 1;
  639. int64 offset = 2;
  640. string personId = 3;// 被举报人的ID
  641. string personType = 4;// 被举报人的类型
  642. }
  643. message ManagerFindReportDetailsListReply{
  644. repeated ManagerFindReportDetailsInfo list = 1;
  645. int64 nextId = 2;
  646. }
  647. message ManagerFindReportDetailsInfo{
  648. int64 id = 1;// 举报详情的ID
  649. string personId = 2;// 被举报者的ID
  650. string personType = 3;// 被举报者的类型
  651. string reportResult = 4;// 被举报的理由
  652. repeated string reportPicture = 5;// 被举报的图片
  653. repeated string category = 6;// 举报的类型
  654. }