message.pb.go 52 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.23.0
  4. // protoc v3.11.4
  5. // source: message.proto
  6. package message
  7. import (
  8. context "context"
  9. proto "github.com/golang/protobuf/proto"
  10. grpc "google.golang.org/grpc"
  11. codes "google.golang.org/grpc/codes"
  12. status "google.golang.org/grpc/status"
  13. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  14. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  15. reflect "reflect"
  16. sync "sync"
  17. )
  18. const (
  19. // Verify that this generated code is sufficiently up-to-date.
  20. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  21. // Verify that runtime/protoimpl is sufficiently up-to-date.
  22. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  23. )
  24. // This is a compile-time assertion that a sufficiently up-to-date version
  25. // of the legacy proto package is being used.
  26. const _ = proto.ProtoPackageIsVersion4
  27. type SendMsgRequest struct {
  28. state protoimpl.MessageState
  29. sizeCache protoimpl.SizeCache
  30. unknownFields protoimpl.UnknownFields
  31. ReceiveUserId string `protobuf:"bytes,1,opt,name=receiveUserId,proto3" json:"receiveUserId,omitempty"` //接收方用户ID
  32. ReceiveName string `protobuf:"bytes,2,opt,name=receiveName,proto3" json:"receiveName,omitempty"` //接收方用户名
  33. SendUserId string `protobuf:"bytes,3,opt,name=sendUserId,proto3" json:"sendUserId,omitempty"` //发送方用户ID
  34. SendName string `protobuf:"bytes,4,opt,name=sendName,proto3" json:"sendName,omitempty"` //发送方用户名
  35. Title string `protobuf:"bytes,5,opt,name=title,proto3" json:"title,omitempty"` //主题
  36. Content string `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"` //内容
  37. MsgType int64 `protobuf:"varint,7,opt,name=msgType,proto3" json:"msgType,omitempty"` //消息类型 1:客服 2:系统通知 3:营销 4:用户会话
  38. Link string `protobuf:"bytes,8,opt,name=link,proto3" json:"link,omitempty"` //跳转链接
  39. CiteId int64 `protobuf:"varint,9,opt,name=citeId,proto3" json:"citeId,omitempty"` //引用id
  40. Appid string `protobuf:"bytes,10,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
  41. }
  42. func (x *SendMsgRequest) Reset() {
  43. *x = SendMsgRequest{}
  44. if protoimpl.UnsafeEnabled {
  45. mi := &file_message_proto_msgTypes[0]
  46. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  47. ms.StoreMessageInfo(mi)
  48. }
  49. }
  50. func (x *SendMsgRequest) String() string {
  51. return protoimpl.X.MessageStringOf(x)
  52. }
  53. func (*SendMsgRequest) ProtoMessage() {}
  54. func (x *SendMsgRequest) ProtoReflect() protoreflect.Message {
  55. mi := &file_message_proto_msgTypes[0]
  56. if protoimpl.UnsafeEnabled && x != nil {
  57. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  58. if ms.LoadMessageInfo() == nil {
  59. ms.StoreMessageInfo(mi)
  60. }
  61. return ms
  62. }
  63. return mi.MessageOf(x)
  64. }
  65. // Deprecated: Use SendMsgRequest.ProtoReflect.Descriptor instead.
  66. func (*SendMsgRequest) Descriptor() ([]byte, []int) {
  67. return file_message_proto_rawDescGZIP(), []int{0}
  68. }
  69. func (x *SendMsgRequest) GetReceiveUserId() string {
  70. if x != nil {
  71. return x.ReceiveUserId
  72. }
  73. return ""
  74. }
  75. func (x *SendMsgRequest) GetReceiveName() string {
  76. if x != nil {
  77. return x.ReceiveName
  78. }
  79. return ""
  80. }
  81. func (x *SendMsgRequest) GetSendUserId() string {
  82. if x != nil {
  83. return x.SendUserId
  84. }
  85. return ""
  86. }
  87. func (x *SendMsgRequest) GetSendName() string {
  88. if x != nil {
  89. return x.SendName
  90. }
  91. return ""
  92. }
  93. func (x *SendMsgRequest) GetTitle() string {
  94. if x != nil {
  95. return x.Title
  96. }
  97. return ""
  98. }
  99. func (x *SendMsgRequest) GetContent() string {
  100. if x != nil {
  101. return x.Content
  102. }
  103. return ""
  104. }
  105. func (x *SendMsgRequest) GetMsgType() int64 {
  106. if x != nil {
  107. return x.MsgType
  108. }
  109. return 0
  110. }
  111. func (x *SendMsgRequest) GetLink() string {
  112. if x != nil {
  113. return x.Link
  114. }
  115. return ""
  116. }
  117. func (x *SendMsgRequest) GetCiteId() int64 {
  118. if x != nil {
  119. return x.CiteId
  120. }
  121. return 0
  122. }
  123. func (x *SendMsgRequest) GetAppid() string {
  124. if x != nil {
  125. return x.Appid
  126. }
  127. return ""
  128. }
  129. type ChangeReadStatusRequest struct {
  130. state protoimpl.MessageState
  131. sizeCache protoimpl.SizeCache
  132. unknownFields protoimpl.UnknownFields
  133. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 消息id
  134. ReadStatus int64 `protobuf:"varint,2,opt,name=readStatus,proto3" json:"readStatus,omitempty"` // 阅读状态 0-未读 1-已读
  135. Appid string `protobuf:"bytes,3,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
  136. }
  137. func (x *ChangeReadStatusRequest) Reset() {
  138. *x = ChangeReadStatusRequest{}
  139. if protoimpl.UnsafeEnabled {
  140. mi := &file_message_proto_msgTypes[1]
  141. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  142. ms.StoreMessageInfo(mi)
  143. }
  144. }
  145. func (x *ChangeReadStatusRequest) String() string {
  146. return protoimpl.X.MessageStringOf(x)
  147. }
  148. func (*ChangeReadStatusRequest) ProtoMessage() {}
  149. func (x *ChangeReadStatusRequest) ProtoReflect() protoreflect.Message {
  150. mi := &file_message_proto_msgTypes[1]
  151. if protoimpl.UnsafeEnabled && x != nil {
  152. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  153. if ms.LoadMessageInfo() == nil {
  154. ms.StoreMessageInfo(mi)
  155. }
  156. return ms
  157. }
  158. return mi.MessageOf(x)
  159. }
  160. // Deprecated: Use ChangeReadStatusRequest.ProtoReflect.Descriptor instead.
  161. func (*ChangeReadStatusRequest) Descriptor() ([]byte, []int) {
  162. return file_message_proto_rawDescGZIP(), []int{1}
  163. }
  164. func (x *ChangeReadStatusRequest) GetId() int64 {
  165. if x != nil {
  166. return x.Id
  167. }
  168. return 0
  169. }
  170. func (x *ChangeReadStatusRequest) GetReadStatus() int64 {
  171. if x != nil {
  172. return x.ReadStatus
  173. }
  174. return 0
  175. }
  176. func (x *ChangeReadStatusRequest) GetAppid() string {
  177. if x != nil {
  178. return x.Appid
  179. }
  180. return ""
  181. }
  182. // 删除单一消息
  183. type DeleteSingleMessageRequest struct {
  184. state protoimpl.MessageState
  185. sizeCache protoimpl.SizeCache
  186. unknownFields protoimpl.UnknownFields
  187. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 消息id
  188. Appid string `protobuf:"bytes,3,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
  189. }
  190. func (x *DeleteSingleMessageRequest) Reset() {
  191. *x = DeleteSingleMessageRequest{}
  192. if protoimpl.UnsafeEnabled {
  193. mi := &file_message_proto_msgTypes[2]
  194. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  195. ms.StoreMessageInfo(mi)
  196. }
  197. }
  198. func (x *DeleteSingleMessageRequest) String() string {
  199. return protoimpl.X.MessageStringOf(x)
  200. }
  201. func (*DeleteSingleMessageRequest) ProtoMessage() {}
  202. func (x *DeleteSingleMessageRequest) ProtoReflect() protoreflect.Message {
  203. mi := &file_message_proto_msgTypes[2]
  204. if protoimpl.UnsafeEnabled && x != nil {
  205. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  206. if ms.LoadMessageInfo() == nil {
  207. ms.StoreMessageInfo(mi)
  208. }
  209. return ms
  210. }
  211. return mi.MessageOf(x)
  212. }
  213. // Deprecated: Use DeleteSingleMessageRequest.ProtoReflect.Descriptor instead.
  214. func (*DeleteSingleMessageRequest) Descriptor() ([]byte, []int) {
  215. return file_message_proto_rawDescGZIP(), []int{2}
  216. }
  217. func (x *DeleteSingleMessageRequest) GetId() int64 {
  218. if x != nil {
  219. return x.Id
  220. }
  221. return 0
  222. }
  223. func (x *DeleteSingleMessageRequest) GetAppid() string {
  224. if x != nil {
  225. return x.Appid
  226. }
  227. return ""
  228. }
  229. // 批量删除消息
  230. type DeleteMultipleMessageRequest struct {
  231. state protoimpl.MessageState
  232. sizeCache protoimpl.SizeCache
  233. unknownFields protoimpl.UnknownFields
  234. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // 多条消息id, 逗号分隔
  235. Appid string `protobuf:"bytes,3,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
  236. }
  237. func (x *DeleteMultipleMessageRequest) Reset() {
  238. *x = DeleteMultipleMessageRequest{}
  239. if protoimpl.UnsafeEnabled {
  240. mi := &file_message_proto_msgTypes[3]
  241. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  242. ms.StoreMessageInfo(mi)
  243. }
  244. }
  245. func (x *DeleteMultipleMessageRequest) String() string {
  246. return protoimpl.X.MessageStringOf(x)
  247. }
  248. func (*DeleteMultipleMessageRequest) ProtoMessage() {}
  249. func (x *DeleteMultipleMessageRequest) ProtoReflect() protoreflect.Message {
  250. mi := &file_message_proto_msgTypes[3]
  251. if protoimpl.UnsafeEnabled && x != nil {
  252. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  253. if ms.LoadMessageInfo() == nil {
  254. ms.StoreMessageInfo(mi)
  255. }
  256. return ms
  257. }
  258. return mi.MessageOf(x)
  259. }
  260. // Deprecated: Use DeleteMultipleMessageRequest.ProtoReflect.Descriptor instead.
  261. func (*DeleteMultipleMessageRequest) Descriptor() ([]byte, []int) {
  262. return file_message_proto_rawDescGZIP(), []int{3}
  263. }
  264. func (x *DeleteMultipleMessageRequest) GetId() string {
  265. if x != nil {
  266. return x.Id
  267. }
  268. return ""
  269. }
  270. func (x *DeleteMultipleMessageRequest) GetAppid() string {
  271. if x != nil {
  272. return x.Appid
  273. }
  274. return ""
  275. }
  276. // 查询指定用户未读消息合计
  277. type GetUnreadCountRequest struct {
  278. state protoimpl.MessageState
  279. sizeCache protoimpl.SizeCache
  280. unknownFields protoimpl.UnknownFields
  281. UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` // 用户id
  282. Appid string `protobuf:"bytes,2,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
  283. }
  284. func (x *GetUnreadCountRequest) Reset() {
  285. *x = GetUnreadCountRequest{}
  286. if protoimpl.UnsafeEnabled {
  287. mi := &file_message_proto_msgTypes[4]
  288. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  289. ms.StoreMessageInfo(mi)
  290. }
  291. }
  292. func (x *GetUnreadCountRequest) String() string {
  293. return protoimpl.X.MessageStringOf(x)
  294. }
  295. func (*GetUnreadCountRequest) ProtoMessage() {}
  296. func (x *GetUnreadCountRequest) ProtoReflect() protoreflect.Message {
  297. mi := &file_message_proto_msgTypes[4]
  298. if protoimpl.UnsafeEnabled && x != nil {
  299. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  300. if ms.LoadMessageInfo() == nil {
  301. ms.StoreMessageInfo(mi)
  302. }
  303. return ms
  304. }
  305. return mi.MessageOf(x)
  306. }
  307. // Deprecated: Use GetUnreadCountRequest.ProtoReflect.Descriptor instead.
  308. func (*GetUnreadCountRequest) Descriptor() ([]byte, []int) {
  309. return file_message_proto_rawDescGZIP(), []int{4}
  310. }
  311. func (x *GetUnreadCountRequest) GetUserId() string {
  312. if x != nil {
  313. return x.UserId
  314. }
  315. return ""
  316. }
  317. func (x *GetUnreadCountRequest) GetAppid() string {
  318. if x != nil {
  319. return x.Appid
  320. }
  321. return ""
  322. }
  323. type Response struct {
  324. state protoimpl.MessageState
  325. sizeCache protoimpl.SizeCache
  326. unknownFields protoimpl.UnknownFields
  327. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //状态码
  328. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
  329. }
  330. func (x *Response) Reset() {
  331. *x = Response{}
  332. if protoimpl.UnsafeEnabled {
  333. mi := &file_message_proto_msgTypes[5]
  334. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  335. ms.StoreMessageInfo(mi)
  336. }
  337. }
  338. func (x *Response) String() string {
  339. return protoimpl.X.MessageStringOf(x)
  340. }
  341. func (*Response) ProtoMessage() {}
  342. func (x *Response) ProtoReflect() protoreflect.Message {
  343. mi := &file_message_proto_msgTypes[5]
  344. if protoimpl.UnsafeEnabled && x != nil {
  345. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  346. if ms.LoadMessageInfo() == nil {
  347. ms.StoreMessageInfo(mi)
  348. }
  349. return ms
  350. }
  351. return mi.MessageOf(x)
  352. }
  353. // Deprecated: Use Response.ProtoReflect.Descriptor instead.
  354. func (*Response) Descriptor() ([]byte, []int) {
  355. return file_message_proto_rawDescGZIP(), []int{5}
  356. }
  357. func (x *Response) GetCode() int64 {
  358. if x != nil {
  359. return x.Code
  360. }
  361. return 0
  362. }
  363. func (x *Response) GetMessage() string {
  364. if x != nil {
  365. return x.Message
  366. }
  367. return ""
  368. }
  369. type GetUnreadCountResponse struct {
  370. state protoimpl.MessageState
  371. sizeCache protoimpl.SizeCache
  372. unknownFields protoimpl.UnknownFields
  373. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //状态码
  374. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
  375. Count int64 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` //
  376. }
  377. func (x *GetUnreadCountResponse) Reset() {
  378. *x = GetUnreadCountResponse{}
  379. if protoimpl.UnsafeEnabled {
  380. mi := &file_message_proto_msgTypes[6]
  381. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  382. ms.StoreMessageInfo(mi)
  383. }
  384. }
  385. func (x *GetUnreadCountResponse) String() string {
  386. return protoimpl.X.MessageStringOf(x)
  387. }
  388. func (*GetUnreadCountResponse) ProtoMessage() {}
  389. func (x *GetUnreadCountResponse) ProtoReflect() protoreflect.Message {
  390. mi := &file_message_proto_msgTypes[6]
  391. if protoimpl.UnsafeEnabled && x != nil {
  392. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  393. if ms.LoadMessageInfo() == nil {
  394. ms.StoreMessageInfo(mi)
  395. }
  396. return ms
  397. }
  398. return mi.MessageOf(x)
  399. }
  400. // Deprecated: Use GetUnreadCountResponse.ProtoReflect.Descriptor instead.
  401. func (*GetUnreadCountResponse) Descriptor() ([]byte, []int) {
  402. return file_message_proto_rawDescGZIP(), []int{6}
  403. }
  404. func (x *GetUnreadCountResponse) GetCode() int64 {
  405. if x != nil {
  406. return x.Code
  407. }
  408. return 0
  409. }
  410. func (x *GetUnreadCountResponse) GetMessage() string {
  411. if x != nil {
  412. return x.Message
  413. }
  414. return ""
  415. }
  416. func (x *GetUnreadCountResponse) GetCount() int64 {
  417. if x != nil {
  418. return x.Count
  419. }
  420. return 0
  421. }
  422. type FindUserMsgReq struct {
  423. state protoimpl.MessageState
  424. sizeCache protoimpl.SizeCache
  425. unknownFields protoimpl.UnknownFields
  426. UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` //用户id
  427. ReceiveUserId string `protobuf:"bytes,2,opt,name=receiveUserId,proto3" json:"receiveUserId,omitempty"` //聊天方用户id
  428. Appid string `protobuf:"bytes,3,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
  429. OffSet int64 `protobuf:"varint,4,opt,name=offSet,proto3" json:"offSet,omitempty"` //当前
  430. PageSize int64 `protobuf:"varint,5,opt,name=pageSize,proto3" json:"pageSize,omitempty"` //大小
  431. }
  432. func (x *FindUserMsgReq) Reset() {
  433. *x = FindUserMsgReq{}
  434. if protoimpl.UnsafeEnabled {
  435. mi := &file_message_proto_msgTypes[7]
  436. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  437. ms.StoreMessageInfo(mi)
  438. }
  439. }
  440. func (x *FindUserMsgReq) String() string {
  441. return protoimpl.X.MessageStringOf(x)
  442. }
  443. func (*FindUserMsgReq) ProtoMessage() {}
  444. func (x *FindUserMsgReq) ProtoReflect() protoreflect.Message {
  445. mi := &file_message_proto_msgTypes[7]
  446. if protoimpl.UnsafeEnabled && x != nil {
  447. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  448. if ms.LoadMessageInfo() == nil {
  449. ms.StoreMessageInfo(mi)
  450. }
  451. return ms
  452. }
  453. return mi.MessageOf(x)
  454. }
  455. // Deprecated: Use FindUserMsgReq.ProtoReflect.Descriptor instead.
  456. func (*FindUserMsgReq) Descriptor() ([]byte, []int) {
  457. return file_message_proto_rawDescGZIP(), []int{7}
  458. }
  459. func (x *FindUserMsgReq) GetUserId() string {
  460. if x != nil {
  461. return x.UserId
  462. }
  463. return ""
  464. }
  465. func (x *FindUserMsgReq) GetReceiveUserId() string {
  466. if x != nil {
  467. return x.ReceiveUserId
  468. }
  469. return ""
  470. }
  471. func (x *FindUserMsgReq) GetAppid() string {
  472. if x != nil {
  473. return x.Appid
  474. }
  475. return ""
  476. }
  477. func (x *FindUserMsgReq) GetOffSet() int64 {
  478. if x != nil {
  479. return x.OffSet
  480. }
  481. return 0
  482. }
  483. func (x *FindUserMsgReq) GetPageSize() int64 {
  484. if x != nil {
  485. return x.PageSize
  486. }
  487. return 0
  488. }
  489. type Messages struct {
  490. state protoimpl.MessageState
  491. sizeCache protoimpl.SizeCache
  492. unknownFields protoimpl.UnknownFields
  493. ReceiveUserId string `protobuf:"bytes,1,opt,name=receiveUserId,proto3" json:"receiveUserId,omitempty"` //接收方用户ID
  494. ReceiveName string `protobuf:"bytes,2,opt,name=receiveName,proto3" json:"receiveName,omitempty"` //接收方用户名
  495. SendUserId string `protobuf:"bytes,3,opt,name=sendUserId,proto3" json:"sendUserId,omitempty"` //发送方用户ID
  496. SendName string `protobuf:"bytes,4,opt,name=sendName,proto3" json:"sendName,omitempty"` //发送方用户名
  497. Title string `protobuf:"bytes,5,opt,name=title,proto3" json:"title,omitempty"` //主题
  498. Content string `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"` //内容
  499. MsgType int64 `protobuf:"varint,7,opt,name=msgType,proto3" json:"msgType,omitempty"` //消息类型 1:客服 2:系统通知 3:营销 4:用户会话
  500. Link string `protobuf:"bytes,8,opt,name=link,proto3" json:"link,omitempty"` //跳转链接
  501. CiteId int64 `protobuf:"varint,9,opt,name=citeId,proto3" json:"citeId,omitempty"` //引用id
  502. IsRead int64 `protobuf:"varint,10,opt,name=isRead,proto3" json:"isRead,omitempty"` //已读未读 0:未读 1:已读
  503. Createtime string `protobuf:"bytes,11,opt,name=createtime,proto3" json:"createtime,omitempty"`
  504. Appid string `protobuf:"bytes,12,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
  505. }
  506. func (x *Messages) Reset() {
  507. *x = Messages{}
  508. if protoimpl.UnsafeEnabled {
  509. mi := &file_message_proto_msgTypes[8]
  510. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  511. ms.StoreMessageInfo(mi)
  512. }
  513. }
  514. func (x *Messages) String() string {
  515. return protoimpl.X.MessageStringOf(x)
  516. }
  517. func (*Messages) ProtoMessage() {}
  518. func (x *Messages) ProtoReflect() protoreflect.Message {
  519. mi := &file_message_proto_msgTypes[8]
  520. if protoimpl.UnsafeEnabled && x != nil {
  521. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  522. if ms.LoadMessageInfo() == nil {
  523. ms.StoreMessageInfo(mi)
  524. }
  525. return ms
  526. }
  527. return mi.MessageOf(x)
  528. }
  529. // Deprecated: Use Messages.ProtoReflect.Descriptor instead.
  530. func (*Messages) Descriptor() ([]byte, []int) {
  531. return file_message_proto_rawDescGZIP(), []int{8}
  532. }
  533. func (x *Messages) GetReceiveUserId() string {
  534. if x != nil {
  535. return x.ReceiveUserId
  536. }
  537. return ""
  538. }
  539. func (x *Messages) GetReceiveName() string {
  540. if x != nil {
  541. return x.ReceiveName
  542. }
  543. return ""
  544. }
  545. func (x *Messages) GetSendUserId() string {
  546. if x != nil {
  547. return x.SendUserId
  548. }
  549. return ""
  550. }
  551. func (x *Messages) GetSendName() string {
  552. if x != nil {
  553. return x.SendName
  554. }
  555. return ""
  556. }
  557. func (x *Messages) GetTitle() string {
  558. if x != nil {
  559. return x.Title
  560. }
  561. return ""
  562. }
  563. func (x *Messages) GetContent() string {
  564. if x != nil {
  565. return x.Content
  566. }
  567. return ""
  568. }
  569. func (x *Messages) GetMsgType() int64 {
  570. if x != nil {
  571. return x.MsgType
  572. }
  573. return 0
  574. }
  575. func (x *Messages) GetLink() string {
  576. if x != nil {
  577. return x.Link
  578. }
  579. return ""
  580. }
  581. func (x *Messages) GetCiteId() int64 {
  582. if x != nil {
  583. return x.CiteId
  584. }
  585. return 0
  586. }
  587. func (x *Messages) GetIsRead() int64 {
  588. if x != nil {
  589. return x.IsRead
  590. }
  591. return 0
  592. }
  593. func (x *Messages) GetCreatetime() string {
  594. if x != nil {
  595. return x.Createtime
  596. }
  597. return ""
  598. }
  599. func (x *Messages) GetAppid() string {
  600. if x != nil {
  601. return x.Appid
  602. }
  603. return ""
  604. }
  605. type FindUserMsgRes struct {
  606. state protoimpl.MessageState
  607. sizeCache protoimpl.SizeCache
  608. unknownFields protoimpl.UnknownFields
  609. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //状态码
  610. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
  611. Data []*Messages `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` //
  612. Count int64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` //总数
  613. }
  614. func (x *FindUserMsgRes) Reset() {
  615. *x = FindUserMsgRes{}
  616. if protoimpl.UnsafeEnabled {
  617. mi := &file_message_proto_msgTypes[9]
  618. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  619. ms.StoreMessageInfo(mi)
  620. }
  621. }
  622. func (x *FindUserMsgRes) String() string {
  623. return protoimpl.X.MessageStringOf(x)
  624. }
  625. func (*FindUserMsgRes) ProtoMessage() {}
  626. func (x *FindUserMsgRes) ProtoReflect() protoreflect.Message {
  627. mi := &file_message_proto_msgTypes[9]
  628. if protoimpl.UnsafeEnabled && x != nil {
  629. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  630. if ms.LoadMessageInfo() == nil {
  631. ms.StoreMessageInfo(mi)
  632. }
  633. return ms
  634. }
  635. return mi.MessageOf(x)
  636. }
  637. // Deprecated: Use FindUserMsgRes.ProtoReflect.Descriptor instead.
  638. func (*FindUserMsgRes) Descriptor() ([]byte, []int) {
  639. return file_message_proto_rawDescGZIP(), []int{9}
  640. }
  641. func (x *FindUserMsgRes) GetCode() int64 {
  642. if x != nil {
  643. return x.Code
  644. }
  645. return 0
  646. }
  647. func (x *FindUserMsgRes) GetMessage() string {
  648. if x != nil {
  649. return x.Message
  650. }
  651. return ""
  652. }
  653. func (x *FindUserMsgRes) GetData() []*Messages {
  654. if x != nil {
  655. return x.Data
  656. }
  657. return nil
  658. }
  659. func (x *FindUserMsgRes) GetCount() int64 {
  660. if x != nil {
  661. return x.Count
  662. }
  663. return 0
  664. }
  665. type GetClassUnreadCountReq struct {
  666. state protoimpl.MessageState
  667. sizeCache protoimpl.SizeCache
  668. unknownFields protoimpl.UnknownFields
  669. UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` // 用户id
  670. MsgType int64 `protobuf:"varint,2,opt,name=msgType,proto3" json:"msgType,omitempty"` //分类 1:客服 2:系统通知 3:营销 4:用户会话
  671. Appid string `protobuf:"bytes,3,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
  672. }
  673. func (x *GetClassUnreadCountReq) Reset() {
  674. *x = GetClassUnreadCountReq{}
  675. if protoimpl.UnsafeEnabled {
  676. mi := &file_message_proto_msgTypes[10]
  677. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  678. ms.StoreMessageInfo(mi)
  679. }
  680. }
  681. func (x *GetClassUnreadCountReq) String() string {
  682. return protoimpl.X.MessageStringOf(x)
  683. }
  684. func (*GetClassUnreadCountReq) ProtoMessage() {}
  685. func (x *GetClassUnreadCountReq) ProtoReflect() protoreflect.Message {
  686. mi := &file_message_proto_msgTypes[10]
  687. if protoimpl.UnsafeEnabled && x != nil {
  688. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  689. if ms.LoadMessageInfo() == nil {
  690. ms.StoreMessageInfo(mi)
  691. }
  692. return ms
  693. }
  694. return mi.MessageOf(x)
  695. }
  696. // Deprecated: Use GetClassUnreadCountReq.ProtoReflect.Descriptor instead.
  697. func (*GetClassUnreadCountReq) Descriptor() ([]byte, []int) {
  698. return file_message_proto_rawDescGZIP(), []int{10}
  699. }
  700. func (x *GetClassUnreadCountReq) GetUserId() string {
  701. if x != nil {
  702. return x.UserId
  703. }
  704. return ""
  705. }
  706. func (x *GetClassUnreadCountReq) GetMsgType() int64 {
  707. if x != nil {
  708. return x.MsgType
  709. }
  710. return 0
  711. }
  712. func (x *GetClassUnreadCountReq) GetAppid() string {
  713. if x != nil {
  714. return x.Appid
  715. }
  716. return ""
  717. }
  718. var File_message_proto protoreflect.FileDescriptor
  719. var file_message_proto_rawDesc = []byte{
  720. 0x0a, 0x0d, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
  721. 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0xa0, 0x02, 0x0a, 0x0e, 0x53, 0x65, 0x6e,
  722. 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0d, 0x72,
  723. 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01,
  724. 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49,
  725. 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4e, 0x61, 0x6d, 0x65,
  726. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4e,
  727. 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x49,
  728. 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x55, 0x73, 0x65,
  729. 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x18,
  730. 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12,
  731. 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
  732. 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74,
  733. 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12,
  734. 0x18, 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03,
  735. 0x52, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x6e,
  736. 0x6b, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x12, 0x16, 0x0a,
  737. 0x06, 0x63, 0x69, 0x74, 0x65, 0x49, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x63,
  738. 0x69, 0x74, 0x65, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x0a,
  739. 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x5f, 0x0a, 0x17, 0x43,
  740. 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52,
  741. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
  742. 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, 0x61, 0x64, 0x53, 0x74,
  743. 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x72, 0x65, 0x61, 0x64,
  744. 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18,
  745. 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x42, 0x0a, 0x1a,
  746. 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73,
  747. 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,
  748. 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70,
  749. 0x70, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64,
  750. 0x22, 0x44, 0x0a, 0x1c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70,
  751. 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  752. 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64,
  753. 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
  754. 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x45, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72,
  755. 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
  756. 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  757. 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64,
  758. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x38, 0x0a,
  759. 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64,
  760. 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a,
  761. 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
  762. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x5c, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x55, 0x6e,
  763. 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
  764. 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
  765. 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  766. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12,
  767. 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05,
  768. 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x98, 0x01, 0x0a, 0x0e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73,
  769. 0x65, 0x72, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72,
  770. 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64,
  771. 0x12, 0x24, 0x0a, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49,
  772. 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65,
  773. 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18,
  774. 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06,
  775. 0x6f, 0x66, 0x66, 0x53, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, 0x66,
  776. 0x66, 0x53, 0x65, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65,
  777. 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65,
  778. 0x22, 0xd2, 0x02, 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x24, 0x0a,
  779. 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01,
  780. 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65,
  781. 0x72, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4e, 0x61,
  782. 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76,
  783. 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x55, 0x73, 0x65,
  784. 0x72, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x55,
  785. 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x4e, 0x61, 0x6d,
  786. 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x4e, 0x61, 0x6d,
  787. 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
  788. 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65,
  789. 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e,
  790. 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01,
  791. 0x28, 0x03, 0x52, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6c,
  792. 0x69, 0x6e, 0x6b, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x12,
  793. 0x16, 0x0a, 0x06, 0x63, 0x69, 0x74, 0x65, 0x49, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52,
  794. 0x06, 0x63, 0x69, 0x74, 0x65, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x52, 0x65, 0x61,
  795. 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x69, 0x73, 0x52, 0x65, 0x61, 0x64, 0x12,
  796. 0x1e, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0b, 0x20,
  797. 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x12,
  798. 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
  799. 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x7b, 0x0a, 0x0e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65,
  800. 0x72, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18,
  801. 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d,
  802. 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65,
  803. 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x25, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20,
  804. 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x65,
  805. 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05,
  806. 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75,
  807. 0x6e, 0x74, 0x22, 0x60, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x55, 0x6e,
  808. 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06,
  809. 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73,
  810. 0x65, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18,
  811. 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14,
  812. 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61,
  813. 0x70, 0x70, 0x69, 0x64, 0x32, 0x9c, 0x04, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  814. 0x12, 0x47, 0x0a, 0x10, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64, 0x53, 0x74,
  815. 0x61, 0x74, 0x75, 0x73, 0x12, 0x20, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x43,
  816. 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52,
  817. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  818. 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x0b, 0x53, 0x65, 0x6e,
  819. 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x17, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61,
  820. 0x67, 0x65, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
  821. 0x74, 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70,
  822. 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x69,
  823. 0x6e, 0x67, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x23, 0x2e, 0x6d, 0x65,
  824. 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x69, 0x6e, 0x67,
  825. 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  826. 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f,
  827. 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x75, 0x6c,
  828. 0x74, 0x69, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x25, 0x2e, 0x6d,
  829. 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x75, 0x6c,
  830. 0x74, 0x69, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75,
  831. 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65,
  832. 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72,
  833. 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1e, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61,
  834. 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e,
  835. 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61,
  836. 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e,
  837. 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x0b, 0x46, 0x69, 0x6e,
  838. 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x17, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61,
  839. 0x67, 0x65, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x52, 0x65,
  840. 0x71, 0x1a, 0x17, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x46, 0x69, 0x6e, 0x64,
  841. 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x12, 0x57, 0x0a, 0x13, 0x47, 0x65,
  842. 0x74, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e,
  843. 0x74, 0x12, 0x1f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x43,
  844. 0x6c, 0x61, 0x73, 0x73, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52,
  845. 0x65, 0x71, 0x1a, 0x1f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74,
  846. 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f,
  847. 0x6e, 0x73, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  848. }
  849. var (
  850. file_message_proto_rawDescOnce sync.Once
  851. file_message_proto_rawDescData = file_message_proto_rawDesc
  852. )
  853. func file_message_proto_rawDescGZIP() []byte {
  854. file_message_proto_rawDescOnce.Do(func() {
  855. file_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_message_proto_rawDescData)
  856. })
  857. return file_message_proto_rawDescData
  858. }
  859. var file_message_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
  860. var file_message_proto_goTypes = []interface{}{
  861. (*SendMsgRequest)(nil), // 0: message.SendMsgRequest
  862. (*ChangeReadStatusRequest)(nil), // 1: message.ChangeReadStatusRequest
  863. (*DeleteSingleMessageRequest)(nil), // 2: message.DeleteSingleMessageRequest
  864. (*DeleteMultipleMessageRequest)(nil), // 3: message.DeleteMultipleMessageRequest
  865. (*GetUnreadCountRequest)(nil), // 4: message.GetUnreadCountRequest
  866. (*Response)(nil), // 5: message.Response
  867. (*GetUnreadCountResponse)(nil), // 6: message.GetUnreadCountResponse
  868. (*FindUserMsgReq)(nil), // 7: message.FindUserMsgReq
  869. (*Messages)(nil), // 8: message.Messages
  870. (*FindUserMsgRes)(nil), // 9: message.FindUserMsgRes
  871. (*GetClassUnreadCountReq)(nil), // 10: message.GetClassUnreadCountReq
  872. }
  873. var file_message_proto_depIdxs = []int32{
  874. 8, // 0: message.FindUserMsgRes.data:type_name -> message.Messages
  875. 1, // 1: message.Message.ChangeReadStatus:input_type -> message.ChangeReadStatusRequest
  876. 0, // 2: message.Message.SendUserMsg:input_type -> message.SendMsgRequest
  877. 2, // 3: message.Message.DeleteSingleMessage:input_type -> message.DeleteSingleMessageRequest
  878. 3, // 4: message.Message.DeleteMultipleMessage:input_type -> message.DeleteMultipleMessageRequest
  879. 4, // 5: message.Message.GetUnreadCount:input_type -> message.GetUnreadCountRequest
  880. 7, // 6: message.Message.FindUserMsg:input_type -> message.FindUserMsgReq
  881. 10, // 7: message.Message.GetClassUnreadCount:input_type -> message.GetClassUnreadCountReq
  882. 5, // 8: message.Message.ChangeReadStatus:output_type -> message.Response
  883. 5, // 9: message.Message.SendUserMsg:output_type -> message.Response
  884. 5, // 10: message.Message.DeleteSingleMessage:output_type -> message.Response
  885. 5, // 11: message.Message.DeleteMultipleMessage:output_type -> message.Response
  886. 6, // 12: message.Message.GetUnreadCount:output_type -> message.GetUnreadCountResponse
  887. 9, // 13: message.Message.FindUserMsg:output_type -> message.FindUserMsgRes
  888. 6, // 14: message.Message.GetClassUnreadCount:output_type -> message.GetUnreadCountResponse
  889. 8, // [8:15] is the sub-list for method output_type
  890. 1, // [1:8] is the sub-list for method input_type
  891. 1, // [1:1] is the sub-list for extension type_name
  892. 1, // [1:1] is the sub-list for extension extendee
  893. 0, // [0:1] is the sub-list for field type_name
  894. }
  895. func init() { file_message_proto_init() }
  896. func file_message_proto_init() {
  897. if File_message_proto != nil {
  898. return
  899. }
  900. if !protoimpl.UnsafeEnabled {
  901. file_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  902. switch v := v.(*SendMsgRequest); i {
  903. case 0:
  904. return &v.state
  905. case 1:
  906. return &v.sizeCache
  907. case 2:
  908. return &v.unknownFields
  909. default:
  910. return nil
  911. }
  912. }
  913. file_message_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  914. switch v := v.(*ChangeReadStatusRequest); i {
  915. case 0:
  916. return &v.state
  917. case 1:
  918. return &v.sizeCache
  919. case 2:
  920. return &v.unknownFields
  921. default:
  922. return nil
  923. }
  924. }
  925. file_message_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  926. switch v := v.(*DeleteSingleMessageRequest); i {
  927. case 0:
  928. return &v.state
  929. case 1:
  930. return &v.sizeCache
  931. case 2:
  932. return &v.unknownFields
  933. default:
  934. return nil
  935. }
  936. }
  937. file_message_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  938. switch v := v.(*DeleteMultipleMessageRequest); i {
  939. case 0:
  940. return &v.state
  941. case 1:
  942. return &v.sizeCache
  943. case 2:
  944. return &v.unknownFields
  945. default:
  946. return nil
  947. }
  948. }
  949. file_message_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  950. switch v := v.(*GetUnreadCountRequest); i {
  951. case 0:
  952. return &v.state
  953. case 1:
  954. return &v.sizeCache
  955. case 2:
  956. return &v.unknownFields
  957. default:
  958. return nil
  959. }
  960. }
  961. file_message_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  962. switch v := v.(*Response); i {
  963. case 0:
  964. return &v.state
  965. case 1:
  966. return &v.sizeCache
  967. case 2:
  968. return &v.unknownFields
  969. default:
  970. return nil
  971. }
  972. }
  973. file_message_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  974. switch v := v.(*GetUnreadCountResponse); i {
  975. case 0:
  976. return &v.state
  977. case 1:
  978. return &v.sizeCache
  979. case 2:
  980. return &v.unknownFields
  981. default:
  982. return nil
  983. }
  984. }
  985. file_message_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  986. switch v := v.(*FindUserMsgReq); i {
  987. case 0:
  988. return &v.state
  989. case 1:
  990. return &v.sizeCache
  991. case 2:
  992. return &v.unknownFields
  993. default:
  994. return nil
  995. }
  996. }
  997. file_message_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  998. switch v := v.(*Messages); i {
  999. case 0:
  1000. return &v.state
  1001. case 1:
  1002. return &v.sizeCache
  1003. case 2:
  1004. return &v.unknownFields
  1005. default:
  1006. return nil
  1007. }
  1008. }
  1009. file_message_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  1010. switch v := v.(*FindUserMsgRes); i {
  1011. case 0:
  1012. return &v.state
  1013. case 1:
  1014. return &v.sizeCache
  1015. case 2:
  1016. return &v.unknownFields
  1017. default:
  1018. return nil
  1019. }
  1020. }
  1021. file_message_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
  1022. switch v := v.(*GetClassUnreadCountReq); i {
  1023. case 0:
  1024. return &v.state
  1025. case 1:
  1026. return &v.sizeCache
  1027. case 2:
  1028. return &v.unknownFields
  1029. default:
  1030. return nil
  1031. }
  1032. }
  1033. }
  1034. type x struct{}
  1035. out := protoimpl.TypeBuilder{
  1036. File: protoimpl.DescBuilder{
  1037. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  1038. RawDescriptor: file_message_proto_rawDesc,
  1039. NumEnums: 0,
  1040. NumMessages: 11,
  1041. NumExtensions: 0,
  1042. NumServices: 1,
  1043. },
  1044. GoTypes: file_message_proto_goTypes,
  1045. DependencyIndexes: file_message_proto_depIdxs,
  1046. MessageInfos: file_message_proto_msgTypes,
  1047. }.Build()
  1048. File_message_proto = out.File
  1049. file_message_proto_rawDesc = nil
  1050. file_message_proto_goTypes = nil
  1051. file_message_proto_depIdxs = nil
  1052. }
  1053. // Reference imports to suppress errors if they are not otherwise used.
  1054. var _ context.Context
  1055. var _ grpc.ClientConnInterface
  1056. // This is a compile-time assertion to ensure that this generated file
  1057. // is compatible with the grpc package it is being compiled against.
  1058. const _ = grpc.SupportPackageIsVersion6
  1059. // MessageClient is the client API for Message service.
  1060. //
  1061. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  1062. type MessageClient interface {
  1063. // 修改消息阅读状态
  1064. ChangeReadStatus(ctx context.Context, in *ChangeReadStatusRequest, opts ...grpc.CallOption) (*Response, error)
  1065. //指定用户发消息
  1066. SendUserMsg(ctx context.Context, in *SendMsgRequest, opts ...grpc.CallOption) (*Response, error)
  1067. // 删除单一消息
  1068. DeleteSingleMessage(ctx context.Context, in *DeleteSingleMessageRequest, opts ...grpc.CallOption) (*Response, error)
  1069. // 删除多条消息
  1070. DeleteMultipleMessage(ctx context.Context, in *DeleteMultipleMessageRequest, opts ...grpc.CallOption) (*Response, error)
  1071. // 查询指定用户未读消息合计
  1072. GetUnreadCount(ctx context.Context, in *GetUnreadCountRequest, opts ...grpc.CallOption) (*GetUnreadCountResponse, error)
  1073. //查询指定用户的历史消息记录
  1074. FindUserMsg(ctx context.Context, in *FindUserMsgReq, opts ...grpc.CallOption) (*FindUserMsgRes, error)
  1075. // 查询指定用户指定分类的未读消息合计
  1076. GetClassUnreadCount(ctx context.Context, in *GetClassUnreadCountReq, opts ...grpc.CallOption) (*GetUnreadCountResponse, error)
  1077. }
  1078. type messageClient struct {
  1079. cc grpc.ClientConnInterface
  1080. }
  1081. func NewMessageClient(cc grpc.ClientConnInterface) MessageClient {
  1082. return &messageClient{cc}
  1083. }
  1084. func (c *messageClient) ChangeReadStatus(ctx context.Context, in *ChangeReadStatusRequest, opts ...grpc.CallOption) (*Response, error) {
  1085. out := new(Response)
  1086. err := c.cc.Invoke(ctx, "/message.Message/ChangeReadStatus", in, out, opts...)
  1087. if err != nil {
  1088. return nil, err
  1089. }
  1090. return out, nil
  1091. }
  1092. func (c *messageClient) SendUserMsg(ctx context.Context, in *SendMsgRequest, opts ...grpc.CallOption) (*Response, error) {
  1093. out := new(Response)
  1094. err := c.cc.Invoke(ctx, "/message.Message/SendUserMsg", in, out, opts...)
  1095. if err != nil {
  1096. return nil, err
  1097. }
  1098. return out, nil
  1099. }
  1100. func (c *messageClient) DeleteSingleMessage(ctx context.Context, in *DeleteSingleMessageRequest, opts ...grpc.CallOption) (*Response, error) {
  1101. out := new(Response)
  1102. err := c.cc.Invoke(ctx, "/message.Message/DeleteSingleMessage", in, out, opts...)
  1103. if err != nil {
  1104. return nil, err
  1105. }
  1106. return out, nil
  1107. }
  1108. func (c *messageClient) DeleteMultipleMessage(ctx context.Context, in *DeleteMultipleMessageRequest, opts ...grpc.CallOption) (*Response, error) {
  1109. out := new(Response)
  1110. err := c.cc.Invoke(ctx, "/message.Message/DeleteMultipleMessage", in, out, opts...)
  1111. if err != nil {
  1112. return nil, err
  1113. }
  1114. return out, nil
  1115. }
  1116. func (c *messageClient) GetUnreadCount(ctx context.Context, in *GetUnreadCountRequest, opts ...grpc.CallOption) (*GetUnreadCountResponse, error) {
  1117. out := new(GetUnreadCountResponse)
  1118. err := c.cc.Invoke(ctx, "/message.Message/GetUnreadCount", in, out, opts...)
  1119. if err != nil {
  1120. return nil, err
  1121. }
  1122. return out, nil
  1123. }
  1124. func (c *messageClient) FindUserMsg(ctx context.Context, in *FindUserMsgReq, opts ...grpc.CallOption) (*FindUserMsgRes, error) {
  1125. out := new(FindUserMsgRes)
  1126. err := c.cc.Invoke(ctx, "/message.Message/FindUserMsg", in, out, opts...)
  1127. if err != nil {
  1128. return nil, err
  1129. }
  1130. return out, nil
  1131. }
  1132. func (c *messageClient) GetClassUnreadCount(ctx context.Context, in *GetClassUnreadCountReq, opts ...grpc.CallOption) (*GetUnreadCountResponse, error) {
  1133. out := new(GetUnreadCountResponse)
  1134. err := c.cc.Invoke(ctx, "/message.Message/GetClassUnreadCount", in, out, opts...)
  1135. if err != nil {
  1136. return nil, err
  1137. }
  1138. return out, nil
  1139. }
  1140. // MessageServer is the server API for Message service.
  1141. type MessageServer interface {
  1142. // 修改消息阅读状态
  1143. ChangeReadStatus(context.Context, *ChangeReadStatusRequest) (*Response, error)
  1144. //指定用户发消息
  1145. SendUserMsg(context.Context, *SendMsgRequest) (*Response, error)
  1146. // 删除单一消息
  1147. DeleteSingleMessage(context.Context, *DeleteSingleMessageRequest) (*Response, error)
  1148. // 删除多条消息
  1149. DeleteMultipleMessage(context.Context, *DeleteMultipleMessageRequest) (*Response, error)
  1150. // 查询指定用户未读消息合计
  1151. GetUnreadCount(context.Context, *GetUnreadCountRequest) (*GetUnreadCountResponse, error)
  1152. //查询指定用户的历史消息记录
  1153. FindUserMsg(context.Context, *FindUserMsgReq) (*FindUserMsgRes, error)
  1154. // 查询指定用户指定分类的未读消息合计
  1155. GetClassUnreadCount(context.Context, *GetClassUnreadCountReq) (*GetUnreadCountResponse, error)
  1156. }
  1157. // UnimplementedMessageServer can be embedded to have forward compatible implementations.
  1158. type UnimplementedMessageServer struct {
  1159. }
  1160. func (*UnimplementedMessageServer) ChangeReadStatus(context.Context, *ChangeReadStatusRequest) (*Response, error) {
  1161. return nil, status.Errorf(codes.Unimplemented, "method ChangeReadStatus not implemented")
  1162. }
  1163. func (*UnimplementedMessageServer) SendUserMsg(context.Context, *SendMsgRequest) (*Response, error) {
  1164. return nil, status.Errorf(codes.Unimplemented, "method SendUserMsg not implemented")
  1165. }
  1166. func (*UnimplementedMessageServer) DeleteSingleMessage(context.Context, *DeleteSingleMessageRequest) (*Response, error) {
  1167. return nil, status.Errorf(codes.Unimplemented, "method DeleteSingleMessage not implemented")
  1168. }
  1169. func (*UnimplementedMessageServer) DeleteMultipleMessage(context.Context, *DeleteMultipleMessageRequest) (*Response, error) {
  1170. return nil, status.Errorf(codes.Unimplemented, "method DeleteMultipleMessage not implemented")
  1171. }
  1172. func (*UnimplementedMessageServer) GetUnreadCount(context.Context, *GetUnreadCountRequest) (*GetUnreadCountResponse, error) {
  1173. return nil, status.Errorf(codes.Unimplemented, "method GetUnreadCount not implemented")
  1174. }
  1175. func (*UnimplementedMessageServer) FindUserMsg(context.Context, *FindUserMsgReq) (*FindUserMsgRes, error) {
  1176. return nil, status.Errorf(codes.Unimplemented, "method FindUserMsg not implemented")
  1177. }
  1178. func (*UnimplementedMessageServer) GetClassUnreadCount(context.Context, *GetClassUnreadCountReq) (*GetUnreadCountResponse, error) {
  1179. return nil, status.Errorf(codes.Unimplemented, "method GetClassUnreadCount not implemented")
  1180. }
  1181. func RegisterMessageServer(s *grpc.Server, srv MessageServer) {
  1182. s.RegisterService(&_Message_serviceDesc, srv)
  1183. }
  1184. func _Message_ChangeReadStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1185. in := new(ChangeReadStatusRequest)
  1186. if err := dec(in); err != nil {
  1187. return nil, err
  1188. }
  1189. if interceptor == nil {
  1190. return srv.(MessageServer).ChangeReadStatus(ctx, in)
  1191. }
  1192. info := &grpc.UnaryServerInfo{
  1193. Server: srv,
  1194. FullMethod: "/message.Message/ChangeReadStatus",
  1195. }
  1196. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1197. return srv.(MessageServer).ChangeReadStatus(ctx, req.(*ChangeReadStatusRequest))
  1198. }
  1199. return interceptor(ctx, in, info, handler)
  1200. }
  1201. func _Message_SendUserMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1202. in := new(SendMsgRequest)
  1203. if err := dec(in); err != nil {
  1204. return nil, err
  1205. }
  1206. if interceptor == nil {
  1207. return srv.(MessageServer).SendUserMsg(ctx, in)
  1208. }
  1209. info := &grpc.UnaryServerInfo{
  1210. Server: srv,
  1211. FullMethod: "/message.Message/SendUserMsg",
  1212. }
  1213. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1214. return srv.(MessageServer).SendUserMsg(ctx, req.(*SendMsgRequest))
  1215. }
  1216. return interceptor(ctx, in, info, handler)
  1217. }
  1218. func _Message_DeleteSingleMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1219. in := new(DeleteSingleMessageRequest)
  1220. if err := dec(in); err != nil {
  1221. return nil, err
  1222. }
  1223. if interceptor == nil {
  1224. return srv.(MessageServer).DeleteSingleMessage(ctx, in)
  1225. }
  1226. info := &grpc.UnaryServerInfo{
  1227. Server: srv,
  1228. FullMethod: "/message.Message/DeleteSingleMessage",
  1229. }
  1230. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1231. return srv.(MessageServer).DeleteSingleMessage(ctx, req.(*DeleteSingleMessageRequest))
  1232. }
  1233. return interceptor(ctx, in, info, handler)
  1234. }
  1235. func _Message_DeleteMultipleMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1236. in := new(DeleteMultipleMessageRequest)
  1237. if err := dec(in); err != nil {
  1238. return nil, err
  1239. }
  1240. if interceptor == nil {
  1241. return srv.(MessageServer).DeleteMultipleMessage(ctx, in)
  1242. }
  1243. info := &grpc.UnaryServerInfo{
  1244. Server: srv,
  1245. FullMethod: "/message.Message/DeleteMultipleMessage",
  1246. }
  1247. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1248. return srv.(MessageServer).DeleteMultipleMessage(ctx, req.(*DeleteMultipleMessageRequest))
  1249. }
  1250. return interceptor(ctx, in, info, handler)
  1251. }
  1252. func _Message_GetUnreadCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1253. in := new(GetUnreadCountRequest)
  1254. if err := dec(in); err != nil {
  1255. return nil, err
  1256. }
  1257. if interceptor == nil {
  1258. return srv.(MessageServer).GetUnreadCount(ctx, in)
  1259. }
  1260. info := &grpc.UnaryServerInfo{
  1261. Server: srv,
  1262. FullMethod: "/message.Message/GetUnreadCount",
  1263. }
  1264. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1265. return srv.(MessageServer).GetUnreadCount(ctx, req.(*GetUnreadCountRequest))
  1266. }
  1267. return interceptor(ctx, in, info, handler)
  1268. }
  1269. func _Message_FindUserMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1270. in := new(FindUserMsgReq)
  1271. if err := dec(in); err != nil {
  1272. return nil, err
  1273. }
  1274. if interceptor == nil {
  1275. return srv.(MessageServer).FindUserMsg(ctx, in)
  1276. }
  1277. info := &grpc.UnaryServerInfo{
  1278. Server: srv,
  1279. FullMethod: "/message.Message/FindUserMsg",
  1280. }
  1281. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1282. return srv.(MessageServer).FindUserMsg(ctx, req.(*FindUserMsgReq))
  1283. }
  1284. return interceptor(ctx, in, info, handler)
  1285. }
  1286. func _Message_GetClassUnreadCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1287. in := new(GetClassUnreadCountReq)
  1288. if err := dec(in); err != nil {
  1289. return nil, err
  1290. }
  1291. if interceptor == nil {
  1292. return srv.(MessageServer).GetClassUnreadCount(ctx, in)
  1293. }
  1294. info := &grpc.UnaryServerInfo{
  1295. Server: srv,
  1296. FullMethod: "/message.Message/GetClassUnreadCount",
  1297. }
  1298. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1299. return srv.(MessageServer).GetClassUnreadCount(ctx, req.(*GetClassUnreadCountReq))
  1300. }
  1301. return interceptor(ctx, in, info, handler)
  1302. }
  1303. var _Message_serviceDesc = grpc.ServiceDesc{
  1304. ServiceName: "message.Message",
  1305. HandlerType: (*MessageServer)(nil),
  1306. Methods: []grpc.MethodDesc{
  1307. {
  1308. MethodName: "ChangeReadStatus",
  1309. Handler: _Message_ChangeReadStatus_Handler,
  1310. },
  1311. {
  1312. MethodName: "SendUserMsg",
  1313. Handler: _Message_SendUserMsg_Handler,
  1314. },
  1315. {
  1316. MethodName: "DeleteSingleMessage",
  1317. Handler: _Message_DeleteSingleMessage_Handler,
  1318. },
  1319. {
  1320. MethodName: "DeleteMultipleMessage",
  1321. Handler: _Message_DeleteMultipleMessage_Handler,
  1322. },
  1323. {
  1324. MethodName: "GetUnreadCount",
  1325. Handler: _Message_GetUnreadCount_Handler,
  1326. },
  1327. {
  1328. MethodName: "FindUserMsg",
  1329. Handler: _Message_FindUserMsg_Handler,
  1330. },
  1331. {
  1332. MethodName: "GetClassUnreadCount",
  1333. Handler: _Message_GetClassUnreadCount_Handler,
  1334. },
  1335. },
  1336. Streams: []grpc.StreamDesc{},
  1337. Metadata: "message.proto",
  1338. }