message.pb.go 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962
  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. 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,3,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. var File_message_proto protoreflect.FileDescriptor
  423. var file_message_proto_rawDesc = []byte{
  424. 0x0a, 0x0d, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
  425. 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0xa0, 0x02, 0x0a, 0x0e, 0x53, 0x65, 0x6e,
  426. 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0d, 0x72,
  427. 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01,
  428. 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49,
  429. 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4e, 0x61, 0x6d, 0x65,
  430. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4e,
  431. 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x49,
  432. 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x55, 0x73, 0x65,
  433. 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x18,
  434. 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12,
  435. 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
  436. 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74,
  437. 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12,
  438. 0x18, 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03,
  439. 0x52, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x6e,
  440. 0x6b, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x12, 0x16, 0x0a,
  441. 0x06, 0x63, 0x69, 0x74, 0x65, 0x49, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x63,
  442. 0x69, 0x74, 0x65, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x0a,
  443. 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x5f, 0x0a, 0x17, 0x43,
  444. 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52,
  445. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
  446. 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, 0x61, 0x64, 0x53, 0x74,
  447. 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x72, 0x65, 0x61, 0x64,
  448. 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18,
  449. 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x42, 0x0a, 0x1a,
  450. 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73,
  451. 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,
  452. 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70,
  453. 0x70, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64,
  454. 0x22, 0x44, 0x0a, 0x1c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70,
  455. 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  456. 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64,
  457. 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
  458. 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x45, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72,
  459. 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
  460. 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  461. 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64,
  462. 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x38, 0x0a,
  463. 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64,
  464. 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a,
  465. 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
  466. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x5c, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x55, 0x6e,
  467. 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
  468. 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
  469. 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  470. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12,
  471. 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05,
  472. 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x32, 0x89, 0x03, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
  473. 0x65, 0x12, 0x47, 0x0a, 0x10, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64, 0x53,
  474. 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x20, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e,
  475. 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
  476. 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
  477. 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x0b, 0x53, 0x65,
  478. 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x17, 0x2e, 0x6d, 0x65, 0x73, 0x73,
  479. 0x61, 0x67, 0x65, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65,
  480. 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73,
  481. 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53,
  482. 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x23, 0x2e, 0x6d,
  483. 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x69, 0x6e,
  484. 0x67, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
  485. 0x74, 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70,
  486. 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x75,
  487. 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x25, 0x2e,
  488. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x75,
  489. 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71,
  490. 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52,
  491. 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x58, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x55, 0x6e,
  492. 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x25, 0x2e, 0x6d, 0x65, 0x73, 0x73,
  493. 0x61, 0x67, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70,
  494. 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  495. 0x1a, 0x1f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x6e,
  496. 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
  497. 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  498. }
  499. var (
  500. file_message_proto_rawDescOnce sync.Once
  501. file_message_proto_rawDescData = file_message_proto_rawDesc
  502. )
  503. func file_message_proto_rawDescGZIP() []byte {
  504. file_message_proto_rawDescOnce.Do(func() {
  505. file_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_message_proto_rawDescData)
  506. })
  507. return file_message_proto_rawDescData
  508. }
  509. var file_message_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
  510. var file_message_proto_goTypes = []interface{}{
  511. (*SendMsgRequest)(nil), // 0: message.SendMsgRequest
  512. (*ChangeReadStatusRequest)(nil), // 1: message.ChangeReadStatusRequest
  513. (*DeleteSingleMessageRequest)(nil), // 2: message.DeleteSingleMessageRequest
  514. (*DeleteMultipleMessageRequest)(nil), // 3: message.DeleteMultipleMessageRequest
  515. (*GetUnreadCountRequest)(nil), // 4: message.GetUnreadCountRequest
  516. (*Response)(nil), // 5: message.Response
  517. (*GetUnreadCountResponse)(nil), // 6: message.GetUnreadCountResponse
  518. }
  519. var file_message_proto_depIdxs = []int32{
  520. 1, // 0: message.Message.ChangeReadStatus:input_type -> message.ChangeReadStatusRequest
  521. 0, // 1: message.Message.SendUserMsg:input_type -> message.SendMsgRequest
  522. 2, // 2: message.Message.DeleteSingleMessage:input_type -> message.DeleteSingleMessageRequest
  523. 3, // 3: message.Message.DeleteMultipleMessage:input_type -> message.DeleteMultipleMessageRequest
  524. 3, // 4: message.Message.GetUnreadCount:input_type -> message.DeleteMultipleMessageRequest
  525. 5, // 5: message.Message.ChangeReadStatus:output_type -> message.Response
  526. 5, // 6: message.Message.SendUserMsg:output_type -> message.Response
  527. 5, // 7: message.Message.DeleteSingleMessage:output_type -> message.Response
  528. 5, // 8: message.Message.DeleteMultipleMessage:output_type -> message.Response
  529. 6, // 9: message.Message.GetUnreadCount:output_type -> message.GetUnreadCountResponse
  530. 5, // [5:10] is the sub-list for method output_type
  531. 0, // [0:5] is the sub-list for method input_type
  532. 0, // [0:0] is the sub-list for extension type_name
  533. 0, // [0:0] is the sub-list for extension extendee
  534. 0, // [0:0] is the sub-list for field type_name
  535. }
  536. func init() { file_message_proto_init() }
  537. func file_message_proto_init() {
  538. if File_message_proto != nil {
  539. return
  540. }
  541. if !protoimpl.UnsafeEnabled {
  542. file_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  543. switch v := v.(*SendMsgRequest); i {
  544. case 0:
  545. return &v.state
  546. case 1:
  547. return &v.sizeCache
  548. case 2:
  549. return &v.unknownFields
  550. default:
  551. return nil
  552. }
  553. }
  554. file_message_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  555. switch v := v.(*ChangeReadStatusRequest); i {
  556. case 0:
  557. return &v.state
  558. case 1:
  559. return &v.sizeCache
  560. case 2:
  561. return &v.unknownFields
  562. default:
  563. return nil
  564. }
  565. }
  566. file_message_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  567. switch v := v.(*DeleteSingleMessageRequest); i {
  568. case 0:
  569. return &v.state
  570. case 1:
  571. return &v.sizeCache
  572. case 2:
  573. return &v.unknownFields
  574. default:
  575. return nil
  576. }
  577. }
  578. file_message_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  579. switch v := v.(*DeleteMultipleMessageRequest); i {
  580. case 0:
  581. return &v.state
  582. case 1:
  583. return &v.sizeCache
  584. case 2:
  585. return &v.unknownFields
  586. default:
  587. return nil
  588. }
  589. }
  590. file_message_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  591. switch v := v.(*GetUnreadCountRequest); i {
  592. case 0:
  593. return &v.state
  594. case 1:
  595. return &v.sizeCache
  596. case 2:
  597. return &v.unknownFields
  598. default:
  599. return nil
  600. }
  601. }
  602. file_message_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  603. switch v := v.(*Response); i {
  604. case 0:
  605. return &v.state
  606. case 1:
  607. return &v.sizeCache
  608. case 2:
  609. return &v.unknownFields
  610. default:
  611. return nil
  612. }
  613. }
  614. file_message_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  615. switch v := v.(*GetUnreadCountResponse); i {
  616. case 0:
  617. return &v.state
  618. case 1:
  619. return &v.sizeCache
  620. case 2:
  621. return &v.unknownFields
  622. default:
  623. return nil
  624. }
  625. }
  626. }
  627. type x struct{}
  628. out := protoimpl.TypeBuilder{
  629. File: protoimpl.DescBuilder{
  630. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  631. RawDescriptor: file_message_proto_rawDesc,
  632. NumEnums: 0,
  633. NumMessages: 7,
  634. NumExtensions: 0,
  635. NumServices: 1,
  636. },
  637. GoTypes: file_message_proto_goTypes,
  638. DependencyIndexes: file_message_proto_depIdxs,
  639. MessageInfos: file_message_proto_msgTypes,
  640. }.Build()
  641. File_message_proto = out.File
  642. file_message_proto_rawDesc = nil
  643. file_message_proto_goTypes = nil
  644. file_message_proto_depIdxs = nil
  645. }
  646. // Reference imports to suppress errors if they are not otherwise used.
  647. var _ context.Context
  648. var _ grpc.ClientConnInterface
  649. // This is a compile-time assertion to ensure that this generated file
  650. // is compatible with the grpc package it is being compiled against.
  651. const _ = grpc.SupportPackageIsVersion6
  652. // MessageClient is the client API for Message service.
  653. //
  654. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  655. type MessageClient interface {
  656. // 修改消息阅读状态
  657. ChangeReadStatus(ctx context.Context, in *ChangeReadStatusRequest, opts ...grpc.CallOption) (*Response, error)
  658. //指定用户发消息
  659. SendUserMsg(ctx context.Context, in *SendMsgRequest, opts ...grpc.CallOption) (*Response, error)
  660. // 删除单一消息
  661. DeleteSingleMessage(ctx context.Context, in *DeleteSingleMessageRequest, opts ...grpc.CallOption) (*Response, error)
  662. // 删除多条消息
  663. DeleteMultipleMessage(ctx context.Context, in *DeleteMultipleMessageRequest, opts ...grpc.CallOption) (*Response, error)
  664. // 查询指定用户未读消息合计
  665. GetUnreadCount(ctx context.Context, in *DeleteMultipleMessageRequest, opts ...grpc.CallOption) (*GetUnreadCountResponse, error)
  666. }
  667. type messageClient struct {
  668. cc grpc.ClientConnInterface
  669. }
  670. func NewMessageClient(cc grpc.ClientConnInterface) MessageClient {
  671. return &messageClient{cc}
  672. }
  673. func (c *messageClient) ChangeReadStatus(ctx context.Context, in *ChangeReadStatusRequest, opts ...grpc.CallOption) (*Response, error) {
  674. out := new(Response)
  675. err := c.cc.Invoke(ctx, "/message.Message/ChangeReadStatus", in, out, opts...)
  676. if err != nil {
  677. return nil, err
  678. }
  679. return out, nil
  680. }
  681. func (c *messageClient) SendUserMsg(ctx context.Context, in *SendMsgRequest, opts ...grpc.CallOption) (*Response, error) {
  682. out := new(Response)
  683. err := c.cc.Invoke(ctx, "/message.Message/SendUserMsg", in, out, opts...)
  684. if err != nil {
  685. return nil, err
  686. }
  687. return out, nil
  688. }
  689. func (c *messageClient) DeleteSingleMessage(ctx context.Context, in *DeleteSingleMessageRequest, opts ...grpc.CallOption) (*Response, error) {
  690. out := new(Response)
  691. err := c.cc.Invoke(ctx, "/message.Message/DeleteSingleMessage", in, out, opts...)
  692. if err != nil {
  693. return nil, err
  694. }
  695. return out, nil
  696. }
  697. func (c *messageClient) DeleteMultipleMessage(ctx context.Context, in *DeleteMultipleMessageRequest, opts ...grpc.CallOption) (*Response, error) {
  698. out := new(Response)
  699. err := c.cc.Invoke(ctx, "/message.Message/DeleteMultipleMessage", in, out, opts...)
  700. if err != nil {
  701. return nil, err
  702. }
  703. return out, nil
  704. }
  705. func (c *messageClient) GetUnreadCount(ctx context.Context, in *DeleteMultipleMessageRequest, opts ...grpc.CallOption) (*GetUnreadCountResponse, error) {
  706. out := new(GetUnreadCountResponse)
  707. err := c.cc.Invoke(ctx, "/message.Message/GetUnreadCount", in, out, opts...)
  708. if err != nil {
  709. return nil, err
  710. }
  711. return out, nil
  712. }
  713. // MessageServer is the server API for Message service.
  714. type MessageServer interface {
  715. // 修改消息阅读状态
  716. ChangeReadStatus(context.Context, *ChangeReadStatusRequest) (*Response, error)
  717. //指定用户发消息
  718. SendUserMsg(context.Context, *SendMsgRequest) (*Response, error)
  719. // 删除单一消息
  720. DeleteSingleMessage(context.Context, *DeleteSingleMessageRequest) (*Response, error)
  721. // 删除多条消息
  722. DeleteMultipleMessage(context.Context, *DeleteMultipleMessageRequest) (*Response, error)
  723. // 查询指定用户未读消息合计
  724. GetUnreadCount(context.Context, *DeleteMultipleMessageRequest) (*GetUnreadCountResponse, error)
  725. }
  726. // UnimplementedMessageServer can be embedded to have forward compatible implementations.
  727. type UnimplementedMessageServer struct {
  728. }
  729. func (*UnimplementedMessageServer) ChangeReadStatus(context.Context, *ChangeReadStatusRequest) (*Response, error) {
  730. return nil, status.Errorf(codes.Unimplemented, "method ChangeReadStatus not implemented")
  731. }
  732. func (*UnimplementedMessageServer) SendUserMsg(context.Context, *SendMsgRequest) (*Response, error) {
  733. return nil, status.Errorf(codes.Unimplemented, "method SendUserMsg not implemented")
  734. }
  735. func (*UnimplementedMessageServer) DeleteSingleMessage(context.Context, *DeleteSingleMessageRequest) (*Response, error) {
  736. return nil, status.Errorf(codes.Unimplemented, "method DeleteSingleMessage not implemented")
  737. }
  738. func (*UnimplementedMessageServer) DeleteMultipleMessage(context.Context, *DeleteMultipleMessageRequest) (*Response, error) {
  739. return nil, status.Errorf(codes.Unimplemented, "method DeleteMultipleMessage not implemented")
  740. }
  741. func (*UnimplementedMessageServer) GetUnreadCount(context.Context, *DeleteMultipleMessageRequest) (*GetUnreadCountResponse, error) {
  742. return nil, status.Errorf(codes.Unimplemented, "method GetUnreadCount not implemented")
  743. }
  744. func RegisterMessageServer(s *grpc.Server, srv MessageServer) {
  745. s.RegisterService(&_Message_serviceDesc, srv)
  746. }
  747. func _Message_ChangeReadStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  748. in := new(ChangeReadStatusRequest)
  749. if err := dec(in); err != nil {
  750. return nil, err
  751. }
  752. if interceptor == nil {
  753. return srv.(MessageServer).ChangeReadStatus(ctx, in)
  754. }
  755. info := &grpc.UnaryServerInfo{
  756. Server: srv,
  757. FullMethod: "/message.Message/ChangeReadStatus",
  758. }
  759. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  760. return srv.(MessageServer).ChangeReadStatus(ctx, req.(*ChangeReadStatusRequest))
  761. }
  762. return interceptor(ctx, in, info, handler)
  763. }
  764. func _Message_SendUserMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  765. in := new(SendMsgRequest)
  766. if err := dec(in); err != nil {
  767. return nil, err
  768. }
  769. if interceptor == nil {
  770. return srv.(MessageServer).SendUserMsg(ctx, in)
  771. }
  772. info := &grpc.UnaryServerInfo{
  773. Server: srv,
  774. FullMethod: "/message.Message/SendUserMsg",
  775. }
  776. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  777. return srv.(MessageServer).SendUserMsg(ctx, req.(*SendMsgRequest))
  778. }
  779. return interceptor(ctx, in, info, handler)
  780. }
  781. func _Message_DeleteSingleMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  782. in := new(DeleteSingleMessageRequest)
  783. if err := dec(in); err != nil {
  784. return nil, err
  785. }
  786. if interceptor == nil {
  787. return srv.(MessageServer).DeleteSingleMessage(ctx, in)
  788. }
  789. info := &grpc.UnaryServerInfo{
  790. Server: srv,
  791. FullMethod: "/message.Message/DeleteSingleMessage",
  792. }
  793. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  794. return srv.(MessageServer).DeleteSingleMessage(ctx, req.(*DeleteSingleMessageRequest))
  795. }
  796. return interceptor(ctx, in, info, handler)
  797. }
  798. func _Message_DeleteMultipleMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  799. in := new(DeleteMultipleMessageRequest)
  800. if err := dec(in); err != nil {
  801. return nil, err
  802. }
  803. if interceptor == nil {
  804. return srv.(MessageServer).DeleteMultipleMessage(ctx, in)
  805. }
  806. info := &grpc.UnaryServerInfo{
  807. Server: srv,
  808. FullMethod: "/message.Message/DeleteMultipleMessage",
  809. }
  810. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  811. return srv.(MessageServer).DeleteMultipleMessage(ctx, req.(*DeleteMultipleMessageRequest))
  812. }
  813. return interceptor(ctx, in, info, handler)
  814. }
  815. func _Message_GetUnreadCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  816. in := new(DeleteMultipleMessageRequest)
  817. if err := dec(in); err != nil {
  818. return nil, err
  819. }
  820. if interceptor == nil {
  821. return srv.(MessageServer).GetUnreadCount(ctx, in)
  822. }
  823. info := &grpc.UnaryServerInfo{
  824. Server: srv,
  825. FullMethod: "/message.Message/GetUnreadCount",
  826. }
  827. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  828. return srv.(MessageServer).GetUnreadCount(ctx, req.(*DeleteMultipleMessageRequest))
  829. }
  830. return interceptor(ctx, in, info, handler)
  831. }
  832. var _Message_serviceDesc = grpc.ServiceDesc{
  833. ServiceName: "message.Message",
  834. HandlerType: (*MessageServer)(nil),
  835. Methods: []grpc.MethodDesc{
  836. {
  837. MethodName: "ChangeReadStatus",
  838. Handler: _Message_ChangeReadStatus_Handler,
  839. },
  840. {
  841. MethodName: "SendUserMsg",
  842. Handler: _Message_SendUserMsg_Handler,
  843. },
  844. {
  845. MethodName: "DeleteSingleMessage",
  846. Handler: _Message_DeleteSingleMessage_Handler,
  847. },
  848. {
  849. MethodName: "DeleteMultipleMessage",
  850. Handler: _Message_DeleteMultipleMessage_Handler,
  851. },
  852. {
  853. MethodName: "GetUnreadCount",
  854. Handler: _Message_GetUnreadCount_Handler,
  855. },
  856. },
  857. Streams: []grpc.StreamDesc{},
  858. Metadata: "message.proto",
  859. }