message.pb.go 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.25.0
  4. // protoc v3.15.1
  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. }
  189. func (x *DeleteSingleMessageRequest) Reset() {
  190. *x = DeleteSingleMessageRequest{}
  191. if protoimpl.UnsafeEnabled {
  192. mi := &file_message_proto_msgTypes[2]
  193. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  194. ms.StoreMessageInfo(mi)
  195. }
  196. }
  197. func (x *DeleteSingleMessageRequest) String() string {
  198. return protoimpl.X.MessageStringOf(x)
  199. }
  200. func (*DeleteSingleMessageRequest) ProtoMessage() {}
  201. func (x *DeleteSingleMessageRequest) ProtoReflect() protoreflect.Message {
  202. mi := &file_message_proto_msgTypes[2]
  203. if protoimpl.UnsafeEnabled && x != nil {
  204. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  205. if ms.LoadMessageInfo() == nil {
  206. ms.StoreMessageInfo(mi)
  207. }
  208. return ms
  209. }
  210. return mi.MessageOf(x)
  211. }
  212. // Deprecated: Use DeleteSingleMessageRequest.ProtoReflect.Descriptor instead.
  213. func (*DeleteSingleMessageRequest) Descriptor() ([]byte, []int) {
  214. return file_message_proto_rawDescGZIP(), []int{2}
  215. }
  216. func (x *DeleteSingleMessageRequest) GetId() int64 {
  217. if x != nil {
  218. return x.Id
  219. }
  220. return 0
  221. }
  222. // 批量删除消息
  223. type DeleteMultipleMessageRequest struct {
  224. state protoimpl.MessageState
  225. sizeCache protoimpl.SizeCache
  226. unknownFields protoimpl.UnknownFields
  227. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // 多条消息id, 逗号分隔
  228. }
  229. func (x *DeleteMultipleMessageRequest) Reset() {
  230. *x = DeleteMultipleMessageRequest{}
  231. if protoimpl.UnsafeEnabled {
  232. mi := &file_message_proto_msgTypes[3]
  233. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  234. ms.StoreMessageInfo(mi)
  235. }
  236. }
  237. func (x *DeleteMultipleMessageRequest) String() string {
  238. return protoimpl.X.MessageStringOf(x)
  239. }
  240. func (*DeleteMultipleMessageRequest) ProtoMessage() {}
  241. func (x *DeleteMultipleMessageRequest) ProtoReflect() protoreflect.Message {
  242. mi := &file_message_proto_msgTypes[3]
  243. if protoimpl.UnsafeEnabled && x != nil {
  244. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  245. if ms.LoadMessageInfo() == nil {
  246. ms.StoreMessageInfo(mi)
  247. }
  248. return ms
  249. }
  250. return mi.MessageOf(x)
  251. }
  252. // Deprecated: Use DeleteMultipleMessageRequest.ProtoReflect.Descriptor instead.
  253. func (*DeleteMultipleMessageRequest) Descriptor() ([]byte, []int) {
  254. return file_message_proto_rawDescGZIP(), []int{3}
  255. }
  256. func (x *DeleteMultipleMessageRequest) GetId() string {
  257. if x != nil {
  258. return x.Id
  259. }
  260. return ""
  261. }
  262. // 查询指定用户未读消息合计
  263. type GetUnreadCountRequest struct {
  264. state protoimpl.MessageState
  265. sizeCache protoimpl.SizeCache
  266. unknownFields protoimpl.UnknownFields
  267. UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` // 用户id
  268. }
  269. func (x *GetUnreadCountRequest) Reset() {
  270. *x = GetUnreadCountRequest{}
  271. if protoimpl.UnsafeEnabled {
  272. mi := &file_message_proto_msgTypes[4]
  273. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  274. ms.StoreMessageInfo(mi)
  275. }
  276. }
  277. func (x *GetUnreadCountRequest) String() string {
  278. return protoimpl.X.MessageStringOf(x)
  279. }
  280. func (*GetUnreadCountRequest) ProtoMessage() {}
  281. func (x *GetUnreadCountRequest) ProtoReflect() protoreflect.Message {
  282. mi := &file_message_proto_msgTypes[4]
  283. if protoimpl.UnsafeEnabled && x != nil {
  284. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  285. if ms.LoadMessageInfo() == nil {
  286. ms.StoreMessageInfo(mi)
  287. }
  288. return ms
  289. }
  290. return mi.MessageOf(x)
  291. }
  292. // Deprecated: Use GetUnreadCountRequest.ProtoReflect.Descriptor instead.
  293. func (*GetUnreadCountRequest) Descriptor() ([]byte, []int) {
  294. return file_message_proto_rawDescGZIP(), []int{4}
  295. }
  296. func (x *GetUnreadCountRequest) GetUserId() string {
  297. if x != nil {
  298. return x.UserId
  299. }
  300. return ""
  301. }
  302. type Response struct {
  303. state protoimpl.MessageState
  304. sizeCache protoimpl.SizeCache
  305. unknownFields protoimpl.UnknownFields
  306. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //状态码
  307. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
  308. }
  309. func (x *Response) Reset() {
  310. *x = Response{}
  311. if protoimpl.UnsafeEnabled {
  312. mi := &file_message_proto_msgTypes[5]
  313. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  314. ms.StoreMessageInfo(mi)
  315. }
  316. }
  317. func (x *Response) String() string {
  318. return protoimpl.X.MessageStringOf(x)
  319. }
  320. func (*Response) ProtoMessage() {}
  321. func (x *Response) ProtoReflect() protoreflect.Message {
  322. mi := &file_message_proto_msgTypes[5]
  323. if protoimpl.UnsafeEnabled && x != nil {
  324. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  325. if ms.LoadMessageInfo() == nil {
  326. ms.StoreMessageInfo(mi)
  327. }
  328. return ms
  329. }
  330. return mi.MessageOf(x)
  331. }
  332. // Deprecated: Use Response.ProtoReflect.Descriptor instead.
  333. func (*Response) Descriptor() ([]byte, []int) {
  334. return file_message_proto_rawDescGZIP(), []int{5}
  335. }
  336. func (x *Response) GetCode() int64 {
  337. if x != nil {
  338. return x.Code
  339. }
  340. return 0
  341. }
  342. func (x *Response) GetMessage() string {
  343. if x != nil {
  344. return x.Message
  345. }
  346. return ""
  347. }
  348. type GetUnreadCountResponse struct {
  349. state protoimpl.MessageState
  350. sizeCache protoimpl.SizeCache
  351. unknownFields protoimpl.UnknownFields
  352. Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //状态码
  353. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
  354. Count int64 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` //
  355. }
  356. func (x *GetUnreadCountResponse) Reset() {
  357. *x = GetUnreadCountResponse{}
  358. if protoimpl.UnsafeEnabled {
  359. mi := &file_message_proto_msgTypes[6]
  360. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  361. ms.StoreMessageInfo(mi)
  362. }
  363. }
  364. func (x *GetUnreadCountResponse) String() string {
  365. return protoimpl.X.MessageStringOf(x)
  366. }
  367. func (*GetUnreadCountResponse) ProtoMessage() {}
  368. func (x *GetUnreadCountResponse) ProtoReflect() protoreflect.Message {
  369. mi := &file_message_proto_msgTypes[6]
  370. if protoimpl.UnsafeEnabled && x != nil {
  371. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  372. if ms.LoadMessageInfo() == nil {
  373. ms.StoreMessageInfo(mi)
  374. }
  375. return ms
  376. }
  377. return mi.MessageOf(x)
  378. }
  379. // Deprecated: Use GetUnreadCountResponse.ProtoReflect.Descriptor instead.
  380. func (*GetUnreadCountResponse) Descriptor() ([]byte, []int) {
  381. return file_message_proto_rawDescGZIP(), []int{6}
  382. }
  383. func (x *GetUnreadCountResponse) GetCode() int64 {
  384. if x != nil {
  385. return x.Code
  386. }
  387. return 0
  388. }
  389. func (x *GetUnreadCountResponse) GetMessage() string {
  390. if x != nil {
  391. return x.Message
  392. }
  393. return ""
  394. }
  395. func (x *GetUnreadCountResponse) GetCount() int64 {
  396. if x != nil {
  397. return x.Count
  398. }
  399. return 0
  400. }
  401. var File_message_proto protoreflect.FileDescriptor
  402. var file_message_proto_rawDesc = []byte{
  403. 0x0a, 0x0d, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
  404. 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0xa0, 0x02, 0x0a, 0x0e, 0x53, 0x65, 0x6e,
  405. 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0d, 0x72,
  406. 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01,
  407. 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49,
  408. 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4e, 0x61, 0x6d, 0x65,
  409. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4e,
  410. 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x49,
  411. 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x55, 0x73, 0x65,
  412. 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x18,
  413. 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12,
  414. 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
  415. 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74,
  416. 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12,
  417. 0x18, 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03,
  418. 0x52, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x6e,
  419. 0x6b, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x12, 0x16, 0x0a,
  420. 0x06, 0x63, 0x69, 0x74, 0x65, 0x49, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x63,
  421. 0x69, 0x74, 0x65, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x0a,
  422. 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x5f, 0x0a, 0x17, 0x43,
  423. 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52,
  424. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
  425. 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, 0x61, 0x64, 0x53, 0x74,
  426. 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x72, 0x65, 0x61, 0x64,
  427. 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18,
  428. 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x2c, 0x0a, 0x1a,
  429. 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73,
  430. 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,
  431. 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x22, 0x2e, 0x0a, 0x1c, 0x44, 0x65,
  432. 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73,
  433. 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,
  434. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x2f, 0x0a, 0x15, 0x47, 0x65,
  435. 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75,
  436. 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20,
  437. 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x38, 0x0a, 0x08, 0x52,
  438. 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18,
  439. 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d,
  440. 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65,
  441. 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x5c, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65,
  442. 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
  443. 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63,
  444. 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02,
  445. 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a,
  446. 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f,
  447. 0x75, 0x6e, 0x74, 0x32, 0x89, 0x03, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12,
  448. 0x47, 0x0a, 0x10, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64, 0x53, 0x74, 0x61,
  449. 0x74, 0x75, 0x73, 0x12, 0x20, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x43, 0x68,
  450. 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65,
  451. 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e,
  452. 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x0b, 0x53, 0x65, 0x6e, 0x64,
  453. 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x17, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
  454. 0x65, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  455. 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f,
  456. 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x69, 0x6e,
  457. 0x67, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x23, 0x2e, 0x6d, 0x65, 0x73,
  458. 0x73, 0x61, 0x67, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x69, 0x6e, 0x67, 0x6c,
  459. 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
  460. 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
  461. 0x73, 0x65, 0x12, 0x51, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x75, 0x6c, 0x74,
  462. 0x69, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x25, 0x2e, 0x6d, 0x65,
  463. 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x75, 0x6c, 0x74,
  464. 0x69, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
  465. 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73,
  466. 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x58, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65,
  467. 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x25, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
  468. 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65,
  469. 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f,
  470. 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65,
  471. 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x62,
  472. 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  473. }
  474. var (
  475. file_message_proto_rawDescOnce sync.Once
  476. file_message_proto_rawDescData = file_message_proto_rawDesc
  477. )
  478. func file_message_proto_rawDescGZIP() []byte {
  479. file_message_proto_rawDescOnce.Do(func() {
  480. file_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_message_proto_rawDescData)
  481. })
  482. return file_message_proto_rawDescData
  483. }
  484. var file_message_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
  485. var file_message_proto_goTypes = []interface{}{
  486. (*SendMsgRequest)(nil), // 0: message.SendMsgRequest
  487. (*ChangeReadStatusRequest)(nil), // 1: message.ChangeReadStatusRequest
  488. (*DeleteSingleMessageRequest)(nil), // 2: message.DeleteSingleMessageRequest
  489. (*DeleteMultipleMessageRequest)(nil), // 3: message.DeleteMultipleMessageRequest
  490. (*GetUnreadCountRequest)(nil), // 4: message.GetUnreadCountRequest
  491. (*Response)(nil), // 5: message.Response
  492. (*GetUnreadCountResponse)(nil), // 6: message.GetUnreadCountResponse
  493. }
  494. var file_message_proto_depIdxs = []int32{
  495. 1, // 0: message.Message.ChangeReadStatus:input_type -> message.ChangeReadStatusRequest
  496. 0, // 1: message.Message.SendUserMsg:input_type -> message.SendMsgRequest
  497. 2, // 2: message.Message.DeleteSingleMessage:input_type -> message.DeleteSingleMessageRequest
  498. 3, // 3: message.Message.DeleteMultipleMessage:input_type -> message.DeleteMultipleMessageRequest
  499. 3, // 4: message.Message.GetUnreadCount:input_type -> message.DeleteMultipleMessageRequest
  500. 5, // 5: message.Message.ChangeReadStatus:output_type -> message.Response
  501. 5, // 6: message.Message.SendUserMsg:output_type -> message.Response
  502. 5, // 7: message.Message.DeleteSingleMessage:output_type -> message.Response
  503. 5, // 8: message.Message.DeleteMultipleMessage:output_type -> message.Response
  504. 6, // 9: message.Message.GetUnreadCount:output_type -> message.GetUnreadCountResponse
  505. 5, // [5:10] is the sub-list for method output_type
  506. 0, // [0:5] is the sub-list for method input_type
  507. 0, // [0:0] is the sub-list for extension type_name
  508. 0, // [0:0] is the sub-list for extension extendee
  509. 0, // [0:0] is the sub-list for field type_name
  510. }
  511. func init() { file_message_proto_init() }
  512. func file_message_proto_init() {
  513. if File_message_proto != nil {
  514. return
  515. }
  516. if !protoimpl.UnsafeEnabled {
  517. file_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  518. switch v := v.(*SendMsgRequest); i {
  519. case 0:
  520. return &v.state
  521. case 1:
  522. return &v.sizeCache
  523. case 2:
  524. return &v.unknownFields
  525. default:
  526. return nil
  527. }
  528. }
  529. file_message_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  530. switch v := v.(*ChangeReadStatusRequest); i {
  531. case 0:
  532. return &v.state
  533. case 1:
  534. return &v.sizeCache
  535. case 2:
  536. return &v.unknownFields
  537. default:
  538. return nil
  539. }
  540. }
  541. file_message_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  542. switch v := v.(*DeleteSingleMessageRequest); i {
  543. case 0:
  544. return &v.state
  545. case 1:
  546. return &v.sizeCache
  547. case 2:
  548. return &v.unknownFields
  549. default:
  550. return nil
  551. }
  552. }
  553. file_message_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  554. switch v := v.(*DeleteMultipleMessageRequest); i {
  555. case 0:
  556. return &v.state
  557. case 1:
  558. return &v.sizeCache
  559. case 2:
  560. return &v.unknownFields
  561. default:
  562. return nil
  563. }
  564. }
  565. file_message_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  566. switch v := v.(*GetUnreadCountRequest); i {
  567. case 0:
  568. return &v.state
  569. case 1:
  570. return &v.sizeCache
  571. case 2:
  572. return &v.unknownFields
  573. default:
  574. return nil
  575. }
  576. }
  577. file_message_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  578. switch v := v.(*Response); i {
  579. case 0:
  580. return &v.state
  581. case 1:
  582. return &v.sizeCache
  583. case 2:
  584. return &v.unknownFields
  585. default:
  586. return nil
  587. }
  588. }
  589. file_message_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  590. switch v := v.(*GetUnreadCountResponse); i {
  591. case 0:
  592. return &v.state
  593. case 1:
  594. return &v.sizeCache
  595. case 2:
  596. return &v.unknownFields
  597. default:
  598. return nil
  599. }
  600. }
  601. }
  602. type x struct{}
  603. out := protoimpl.TypeBuilder{
  604. File: protoimpl.DescBuilder{
  605. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  606. RawDescriptor: file_message_proto_rawDesc,
  607. NumEnums: 0,
  608. NumMessages: 7,
  609. NumExtensions: 0,
  610. NumServices: 1,
  611. },
  612. GoTypes: file_message_proto_goTypes,
  613. DependencyIndexes: file_message_proto_depIdxs,
  614. MessageInfos: file_message_proto_msgTypes,
  615. }.Build()
  616. File_message_proto = out.File
  617. file_message_proto_rawDesc = nil
  618. file_message_proto_goTypes = nil
  619. file_message_proto_depIdxs = nil
  620. }
  621. // Reference imports to suppress errors if they are not otherwise used.
  622. var _ context.Context
  623. var _ grpc.ClientConnInterface
  624. // This is a compile-time assertion to ensure that this generated file
  625. // is compatible with the grpc package it is being compiled against.
  626. const _ = grpc.SupportPackageIsVersion6
  627. // MessageClient is the client API for Message service.
  628. //
  629. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  630. type MessageClient interface {
  631. // 修改消息阅读状态
  632. ChangeReadStatus(ctx context.Context, in *ChangeReadStatusRequest, opts ...grpc.CallOption) (*Response, error)
  633. //指定用户发消息
  634. SendUserMsg(ctx context.Context, in *SendMsgRequest, opts ...grpc.CallOption) (*Response, error)
  635. // 删除单一消息
  636. DeleteSingleMessage(ctx context.Context, in *DeleteSingleMessageRequest, opts ...grpc.CallOption) (*Response, error)
  637. // 删除多条消息
  638. DeleteMultipleMessage(ctx context.Context, in *DeleteMultipleMessageRequest, opts ...grpc.CallOption) (*Response, error)
  639. // 查询指定用户未读消息合计
  640. GetUnreadCount(ctx context.Context, in *DeleteMultipleMessageRequest, opts ...grpc.CallOption) (*GetUnreadCountResponse, error)
  641. }
  642. type messageClient struct {
  643. cc grpc.ClientConnInterface
  644. }
  645. func NewMessageClient(cc grpc.ClientConnInterface) MessageClient {
  646. return &messageClient{cc}
  647. }
  648. func (c *messageClient) ChangeReadStatus(ctx context.Context, in *ChangeReadStatusRequest, opts ...grpc.CallOption) (*Response, error) {
  649. out := new(Response)
  650. err := c.cc.Invoke(ctx, "/message.Message/ChangeReadStatus", in, out, opts...)
  651. if err != nil {
  652. return nil, err
  653. }
  654. return out, nil
  655. }
  656. func (c *messageClient) SendUserMsg(ctx context.Context, in *SendMsgRequest, opts ...grpc.CallOption) (*Response, error) {
  657. out := new(Response)
  658. err := c.cc.Invoke(ctx, "/message.Message/SendUserMsg", in, out, opts...)
  659. if err != nil {
  660. return nil, err
  661. }
  662. return out, nil
  663. }
  664. func (c *messageClient) DeleteSingleMessage(ctx context.Context, in *DeleteSingleMessageRequest, opts ...grpc.CallOption) (*Response, error) {
  665. out := new(Response)
  666. err := c.cc.Invoke(ctx, "/message.Message/DeleteSingleMessage", in, out, opts...)
  667. if err != nil {
  668. return nil, err
  669. }
  670. return out, nil
  671. }
  672. func (c *messageClient) DeleteMultipleMessage(ctx context.Context, in *DeleteMultipleMessageRequest, opts ...grpc.CallOption) (*Response, error) {
  673. out := new(Response)
  674. err := c.cc.Invoke(ctx, "/message.Message/DeleteMultipleMessage", in, out, opts...)
  675. if err != nil {
  676. return nil, err
  677. }
  678. return out, nil
  679. }
  680. func (c *messageClient) GetUnreadCount(ctx context.Context, in *DeleteMultipleMessageRequest, opts ...grpc.CallOption) (*GetUnreadCountResponse, error) {
  681. out := new(GetUnreadCountResponse)
  682. err := c.cc.Invoke(ctx, "/message.Message/GetUnreadCount", in, out, opts...)
  683. if err != nil {
  684. return nil, err
  685. }
  686. return out, nil
  687. }
  688. // MessageServer is the server API for Message service.
  689. type MessageServer interface {
  690. // 修改消息阅读状态
  691. ChangeReadStatus(context.Context, *ChangeReadStatusRequest) (*Response, error)
  692. //指定用户发消息
  693. SendUserMsg(context.Context, *SendMsgRequest) (*Response, error)
  694. // 删除单一消息
  695. DeleteSingleMessage(context.Context, *DeleteSingleMessageRequest) (*Response, error)
  696. // 删除多条消息
  697. DeleteMultipleMessage(context.Context, *DeleteMultipleMessageRequest) (*Response, error)
  698. // 查询指定用户未读消息合计
  699. GetUnreadCount(context.Context, *DeleteMultipleMessageRequest) (*GetUnreadCountResponse, error)
  700. }
  701. // UnimplementedMessageServer can be embedded to have forward compatible implementations.
  702. type UnimplementedMessageServer struct {
  703. }
  704. func (*UnimplementedMessageServer) ChangeReadStatus(context.Context, *ChangeReadStatusRequest) (*Response, error) {
  705. return nil, status.Errorf(codes.Unimplemented, "method ChangeReadStatus not implemented")
  706. }
  707. func (*UnimplementedMessageServer) SendUserMsg(context.Context, *SendMsgRequest) (*Response, error) {
  708. return nil, status.Errorf(codes.Unimplemented, "method SendUserMsg not implemented")
  709. }
  710. func (*UnimplementedMessageServer) DeleteSingleMessage(context.Context, *DeleteSingleMessageRequest) (*Response, error) {
  711. return nil, status.Errorf(codes.Unimplemented, "method DeleteSingleMessage not implemented")
  712. }
  713. func (*UnimplementedMessageServer) DeleteMultipleMessage(context.Context, *DeleteMultipleMessageRequest) (*Response, error) {
  714. return nil, status.Errorf(codes.Unimplemented, "method DeleteMultipleMessage not implemented")
  715. }
  716. func (*UnimplementedMessageServer) GetUnreadCount(context.Context, *DeleteMultipleMessageRequest) (*GetUnreadCountResponse, error) {
  717. return nil, status.Errorf(codes.Unimplemented, "method GetUnreadCount not implemented")
  718. }
  719. func RegisterMessageServer(s *grpc.Server, srv MessageServer) {
  720. s.RegisterService(&_Message_serviceDesc, srv)
  721. }
  722. func _Message_ChangeReadStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  723. in := new(ChangeReadStatusRequest)
  724. if err := dec(in); err != nil {
  725. return nil, err
  726. }
  727. if interceptor == nil {
  728. return srv.(MessageServer).ChangeReadStatus(ctx, in)
  729. }
  730. info := &grpc.UnaryServerInfo{
  731. Server: srv,
  732. FullMethod: "/message.Message/ChangeReadStatus",
  733. }
  734. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  735. return srv.(MessageServer).ChangeReadStatus(ctx, req.(*ChangeReadStatusRequest))
  736. }
  737. return interceptor(ctx, in, info, handler)
  738. }
  739. func _Message_SendUserMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  740. in := new(SendMsgRequest)
  741. if err := dec(in); err != nil {
  742. return nil, err
  743. }
  744. if interceptor == nil {
  745. return srv.(MessageServer).SendUserMsg(ctx, in)
  746. }
  747. info := &grpc.UnaryServerInfo{
  748. Server: srv,
  749. FullMethod: "/message.Message/SendUserMsg",
  750. }
  751. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  752. return srv.(MessageServer).SendUserMsg(ctx, req.(*SendMsgRequest))
  753. }
  754. return interceptor(ctx, in, info, handler)
  755. }
  756. func _Message_DeleteSingleMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  757. in := new(DeleteSingleMessageRequest)
  758. if err := dec(in); err != nil {
  759. return nil, err
  760. }
  761. if interceptor == nil {
  762. return srv.(MessageServer).DeleteSingleMessage(ctx, in)
  763. }
  764. info := &grpc.UnaryServerInfo{
  765. Server: srv,
  766. FullMethod: "/message.Message/DeleteSingleMessage",
  767. }
  768. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  769. return srv.(MessageServer).DeleteSingleMessage(ctx, req.(*DeleteSingleMessageRequest))
  770. }
  771. return interceptor(ctx, in, info, handler)
  772. }
  773. func _Message_DeleteMultipleMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  774. in := new(DeleteMultipleMessageRequest)
  775. if err := dec(in); err != nil {
  776. return nil, err
  777. }
  778. if interceptor == nil {
  779. return srv.(MessageServer).DeleteMultipleMessage(ctx, in)
  780. }
  781. info := &grpc.UnaryServerInfo{
  782. Server: srv,
  783. FullMethod: "/message.Message/DeleteMultipleMessage",
  784. }
  785. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  786. return srv.(MessageServer).DeleteMultipleMessage(ctx, req.(*DeleteMultipleMessageRequest))
  787. }
  788. return interceptor(ctx, in, info, handler)
  789. }
  790. func _Message_GetUnreadCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  791. in := new(DeleteMultipleMessageRequest)
  792. if err := dec(in); err != nil {
  793. return nil, err
  794. }
  795. if interceptor == nil {
  796. return srv.(MessageServer).GetUnreadCount(ctx, in)
  797. }
  798. info := &grpc.UnaryServerInfo{
  799. Server: srv,
  800. FullMethod: "/message.Message/GetUnreadCount",
  801. }
  802. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  803. return srv.(MessageServer).GetUnreadCount(ctx, req.(*DeleteMultipleMessageRequest))
  804. }
  805. return interceptor(ctx, in, info, handler)
  806. }
  807. var _Message_serviceDesc = grpc.ServiceDesc{
  808. ServiceName: "message.Message",
  809. HandlerType: (*MessageServer)(nil),
  810. Methods: []grpc.MethodDesc{
  811. {
  812. MethodName: "ChangeReadStatus",
  813. Handler: _Message_ChangeReadStatus_Handler,
  814. },
  815. {
  816. MethodName: "SendUserMsg",
  817. Handler: _Message_SendUserMsg_Handler,
  818. },
  819. {
  820. MethodName: "DeleteSingleMessage",
  821. Handler: _Message_DeleteSingleMessage_Handler,
  822. },
  823. {
  824. MethodName: "DeleteMultipleMessage",
  825. Handler: _Message_DeleteMultipleMessage_Handler,
  826. },
  827. {
  828. MethodName: "GetUnreadCount",
  829. Handler: _Message_GetUnreadCount_Handler,
  830. },
  831. },
  832. Streams: []grpc.StreamDesc{},
  833. Metadata: "message.proto",
  834. }