common.proto 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384
  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 PersonParam{
  30. string personID = 1; // 查询目标的ID
  31. string personType = 2; // 类型
  32. }
  33. message ChatCardInfo{
  34. string id = 1; // id
  35. string nickname = 2;// 昵称
  36. string avatarUrl =3;// 头像链接
  37. int64 sex = 4;// 性别
  38. int64 age = 6; // 年龄
  39. string constellation = 7; // 星座
  40. repeated common.TagList tagList = 9; // 标签列表
  41. string introduceVoice = 10; // 介绍语音
  42. string province = 11;// 省
  43. string city = 12;// 市
  44. string area = 13;// 区
  45. bool isFinishInformation = 14;//是否完善资料
  46. }
  47. message UserIDParam {
  48. string userId = 1;
  49. }
  50. message WxConfReq {
  51. string url = 1;
  52. }
  53. message WxConfResponse{
  54. string appId = 1; // 必填,公众号的唯一标识
  55. int64 timestamp = 2; // 必填,生成签名的时间戳
  56. string nonceStr = 3;// 必填,生成签名的随机串
  57. string signature = 4;// 必填,签名
  58. string url = 5;// 传入的url
  59. }
  60. // 主页信息
  61. message HomeInfo{
  62. string id = 1; // id
  63. string nickname = 2;// 昵称
  64. string avatarUrl =3;// 头像链接
  65. int64 sex = 4;// 性别
  66. repeated string pictures = 5; // 图片
  67. int64 age = 6; // 年龄
  68. string constellation = 7; // 星座
  69. repeated TagList tagList = 8; // 标签
  70. string signature = 9; // 签名
  71. string introduceVoice = 10; // 介绍语音
  72. string province = 11;// 省
  73. string city = 12;// 市
  74. string area = 13;// 区
  75. bool isBlack = 14;// 是否被封号
  76. }
  77. message PersonMsg {
  78. string id = 1; // id
  79. string nickname = 2;// 昵称
  80. string avatarUrl =3;// 头像链接
  81. int64 sex = 4;// 性别
  82. repeated string pictures = 5; // 图片
  83. int64 age = 6; // 年龄
  84. string constellation = 7; // 星座
  85. repeated int64 tagList = 8; // 标签
  86. string signature = 9; // 签名
  87. string introduceVoice = 10; // 介绍语音
  88. string province = 11;// 省
  89. string city = 12;// 市
  90. string area = 13;// 区
  91. bool isFinishInformation = 14; // 是否完成注册
  92. bool isBlack = 15;// 是否被封禁
  93. }
  94. message LookedAndLikedNum{
  95. string id = 1; // id
  96. int64 lookedNum = 2; // 看过ta的数量
  97. int64 likedNum = 3;// 喜欢ta的数量
  98. }
  99. // 添加好友页面信息
  100. message AddFriendMessageInfo{
  101. string id = 1; // id
  102. string nickname = 2;// 昵称
  103. string avatarUrl =3;// 头像链接
  104. int64 sex = 4;// 性别
  105. repeated string pictures = 5; // 图片
  106. string fromOpenId = 6;// 来源公众号对应的openID
  107. bool isRegister = 7;// 是否注册
  108. bool isChat = 8;// 是否聊天
  109. bool isFromUs = 9;// 是否是来源我们
  110. string fromAppId = 10;// 来源公众号对应的appID
  111. string fromName = 11;// 来源公众号对应的公众号名称
  112. string constellation = 12; // 星座
  113. string signature = 13;// 介绍(签名)
  114. string province = 14;// 省
  115. string city = 15;// 市
  116. string area = 16;// 区
  117. }
  118. message PersonIDList{
  119. repeated string personIds = 1;
  120. }
  121. message PersonDBReply{
  122. repeated PersonDB list = 1;
  123. }
  124. message PersonDB{
  125. string id = 1; // id
  126. string nickname = 2;// 昵称
  127. string avatarUrl =3;// 头像链接
  128. int64 sex = 4;// 性别
  129. repeated string pictures = 5; // 图片
  130. int64 age = 6; // 年龄
  131. string constellation = 7; // 星座
  132. string introduceVoice = 8; // 介绍语音
  133. string province = 9;// 省
  134. string city = 10;// 市
  135. string area = 11;// 区
  136. string signature = 12;//介绍
  137. bool isFinishInformation = 13;//是否完善消息
  138. repeated int64 tagList = 14;// 标签列表
  139. }
  140. message ListPageRequest{
  141. int64 nextId = 1;
  142. int64 offset = 2;
  143. }
  144. message ListPageAndSexRequest{
  145. int64 nextId = 1;
  146. int64 offset = 2;
  147. int64 sex = 3;// 对方的性别
  148. }
  149. message FindChatTopicRequest{
  150. string type = 1;// 话题类型
  151. int64 sex = 2;// 对方的性别
  152. }
  153. message ListPage2Request{
  154. string nextId = 1;
  155. int64 offset = 2;
  156. }
  157. message ListPageAndPersonRequest{
  158. string nextId = 1;
  159. int64 offset = 2;
  160. string personID = 3; // 查询目标的ID
  161. string personType = 4; // 类型
  162. }
  163. message SendPhoneCodeRequest {
  164. string phone = 1;
  165. }
  166. message CheckPhoneCodeRequest {
  167. string phone = 1;
  168. string code = 2;
  169. }
  170. message UploadMaterialResponse{
  171. string link = 1;
  172. }
  173. message Ids {
  174. repeated int64 ids = 1;// 标签ID
  175. }
  176. message TagListReply{
  177. repeated TagList list = 1;// 标签列表
  178. }
  179. message TagList{
  180. int64 id = 1; // 标签ID
  181. string name = 2;// 分组名
  182. }
  183. message SexReq{
  184. int64 sex = 1;
  185. }
  186. message RandomIntroduceReply{
  187. string introduce = 1;
  188. }
  189. message UpdateInformationRequest {
  190. string nickname = 1; // 昵称
  191. string avatarUrl = 2;// 头像
  192. int64 sex = 3; // 性别
  193. int64 birthday = 4;// 出生日期(毫秒级时间戳)
  194. repeated int64 tagList = 5;// 标签id列表
  195. string introduceVoice = 6;// 介绍语音的链接
  196. string signature = 7;// 介绍(签名)
  197. repeated string pictures = 8;// 相册(主页图片)
  198. string province = 9;// 省
  199. string city = 10;// 市
  200. string area = 11;// 区
  201. }
  202. message OnlinePersonListReply{
  203. repeated OnlinePersonInfo list = 1;
  204. string nextId = 2;
  205. }
  206. message OnlinePersonInfo{
  207. string personID = 1; // 查询目标的ID
  208. string personType = 2; // 类型
  209. string nickname = 3;// 昵称
  210. string avatarUrl =4;// 头像链接
  211. int64 sex = 5;// 性别
  212. int64 age = 6; // 年龄
  213. string constellation = 7; // 星座
  214. string signature = 8; // 签名
  215. string province = 9;// 省
  216. string city = 10;// 市
  217. string area = 11;// 区
  218. string introduceVoice = 12;// 介绍语音
  219. repeated string tagList = 13;// 标签
  220. }
  221. message ChatRecordListReply{
  222. repeated ChatRecordInfo list = 1;
  223. int64 nextId = 2;
  224. }
  225. message ChatRoomMsg{
  226. int64 roomId = 1; // 房间ID
  227. ChatPersonMsg self = 2; // 自己的信息
  228. ChatPersonMsg other = 3; // 对方的信息
  229. int64 likeability = 5; // 对对方的好感度
  230. }
  231. message ChatPersonMsg{
  232. string id = 1; // id
  233. string type = 2; // 类型
  234. string nickname = 3; // 昵称
  235. string avatar = 4; // 头像
  236. int64 sex = 5;// 性别
  237. }
  238. message ChatRecordInfo{
  239. int64 messageId = 1; // 消息的ID
  240. string msgType = 2; // 消息类型
  241. Message message = 3; // 消息的结构
  242. int64 roomId = 4; // 房间ID
  243. bool isSelf = 5; // 是否是自己
  244. int64 sendTime = 6; // 发送时间
  245. string status = 7; // 消息状态
  246. string statusMsg = 8;// 状态说明
  247. bool isRead = 9;// 对方是否已读
  248. }
  249. message ChatIsReadInfo{
  250. int64 messageId = 1; // 消息的ID
  251. int64 roomId = 4; // 房间ID
  252. }
  253. message GoToRoom{
  254. int64 roomId = 1; // 房间ID
  255. }
  256. message Message{
  257. string content = 1; // 文本内容
  258. string materialUrl = 2; // 素材链接
  259. }
  260. message FindChatRoomMsgRequest{
  261. int64 roomId = 1;
  262. }
  263. message RoomIDRequest{
  264. int64 roomId = 1;
  265. }
  266. message FindChatRecordListRequest{
  267. int64 nextId = 1;
  268. int64 offset = 2;
  269. int64 roomId = 3;
  270. }
  271. message IsLike{
  272. bool isLike = 1;// 是否喜欢(关注)
  273. }
  274. message BalanceRequest{
  275. string personID = 1; // 查询目标的ID
  276. string personType = 2; // 类型
  277. int64 balance = 3;// 充值或者减少的金额
  278. }
  279. message RandomNum {
  280. int64 num = 1; // 随机的数量
  281. }
  282. message RandomNumAndSex {
  283. int64 num = 1; // 随机的数量
  284. int64 sex = 2; // 对方的性别
  285. }
  286. message MemeRequest{
  287. int64 nextId = 1;
  288. int64 offset = 2;
  289. string type = 3;
  290. }
  291. message CommonTextList {
  292. repeated string list = 1;// 需要的数据集合(随机表情包、随机打招呼)
  293. }
  294. message MemeTitleList {
  295. repeated MemeTitle list = 1;// 需要的数据集合(随机表情包、随机打招呼)
  296. }
  297. message MemeTitle{
  298. string name = 1;// 名称
  299. string type = 2;// 类型
  300. }
  301. message MemeList {
  302. repeated string list = 1;// 表情包列表
  303. int64 nextId = 2;
  304. }
  305. message ChatTopicList {
  306. repeated string list = 1;// 话题列表
  307. }
  308. message ReportChatRequest{
  309. string reportedPersonID = 4; // 被举报的人的ID
  310. string reportedPersonType = 5; // 被举报的人的类型
  311. string contactInformation = 6; // 联系方式
  312. string picture = 7; // 图片
  313. repeated string category = 8; // 类别
  314. }
  315. message ReportRequest{
  316. string identifyId = 1;// 发起举报的人的身份ID
  317. string personId = 2; // 发起举报的人的ID
  318. string personType = 3; // 发起举报的人的类型
  319. string reportedIdentifyId = 4; // 被举报的人的身份ID
  320. string reportedPersonId = 5; // 被举报的人的ID
  321. string reportedPersonType = 6; // 被举报的人的类型
  322. string contactInformation = 7; // 联系方式
  323. string picture = 8; // 图片
  324. repeated string category = 9; // 类别
  325. }