message.pb.go 47 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369
  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. var File_message_proto protoreflect.FileDescriptor
  666. var file_message_proto_rawDesc = []byte{
  667. 0x0a, 0x0d, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
  668. 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0xa0, 0x02, 0x0a, 0x0e, 0x53, 0x65, 0x6e,
  669. 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0d, 0x72,
  670. 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01,
  671. 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49,
  672. 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4e, 0x61, 0x6d, 0x65,
  673. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4e,
  674. 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x49,
  675. 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x55, 0x73, 0x65,
  676. 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x18,
  677. 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12,
  678. 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
  679. 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74,
  680. 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12,
  681. 0x18, 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03,
  682. 0x52, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x6e,
  683. 0x6b, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x12, 0x16, 0x0a,
  684. 0x06, 0x63, 0x69, 0x74, 0x65, 0x49, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x63,
  685. 0x69, 0x74, 0x65, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x0a,
  686. 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x5f, 0x0a, 0x17, 0x43,
  687. 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52,
  688. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
  689. 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, 0x61, 0x64, 0x53, 0x74,
  690. 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x72, 0x65, 0x61, 0x64,
  691. 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18,
  692. 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x42, 0x0a, 0x1a,
  693. 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73,
  694. 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,
  695. 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70,
  696. 0x70, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64,
  697. 0x22, 0x44, 0x0a, 0x1c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70,
  698. 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  699. 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64,
  700. 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
  701. 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x45, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72,
  702. 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
  703. 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  704. 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64,
  705. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x38, 0x0a,
  706. 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64,
  707. 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a,
  708. 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
  709. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x5c, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x55, 0x6e,
  710. 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
  711. 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
  712. 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  713. 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12,
  714. 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05,
  715. 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x98, 0x01, 0x0a, 0x0e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73,
  716. 0x65, 0x72, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72,
  717. 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64,
  718. 0x12, 0x24, 0x0a, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49,
  719. 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65,
  720. 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18,
  721. 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06,
  722. 0x6f, 0x66, 0x66, 0x53, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, 0x66,
  723. 0x66, 0x53, 0x65, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65,
  724. 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65,
  725. 0x22, 0xd2, 0x02, 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x24, 0x0a,
  726. 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01,
  727. 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65,
  728. 0x72, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4e, 0x61,
  729. 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76,
  730. 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x55, 0x73, 0x65,
  731. 0x72, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x55,
  732. 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x4e, 0x61, 0x6d,
  733. 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x4e, 0x61, 0x6d,
  734. 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
  735. 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65,
  736. 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e,
  737. 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01,
  738. 0x28, 0x03, 0x52, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6c,
  739. 0x69, 0x6e, 0x6b, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x12,
  740. 0x16, 0x0a, 0x06, 0x63, 0x69, 0x74, 0x65, 0x49, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52,
  741. 0x06, 0x63, 0x69, 0x74, 0x65, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x52, 0x65, 0x61,
  742. 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x69, 0x73, 0x52, 0x65, 0x61, 0x64, 0x12,
  743. 0x1e, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0b, 0x20,
  744. 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x12,
  745. 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
  746. 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x7b, 0x0a, 0x0e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65,
  747. 0x72, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18,
  748. 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d,
  749. 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65,
  750. 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x25, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20,
  751. 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x65,
  752. 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05,
  753. 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75,
  754. 0x6e, 0x74, 0x32, 0xc3, 0x03, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x47,
  755. 0x0a, 0x10, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74,
  756. 0x75, 0x73, 0x12, 0x20, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x43, 0x68, 0x61,
  757. 0x6e, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71,
  758. 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52,
  759. 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x0b, 0x53, 0x65, 0x6e, 0x64, 0x55,
  760. 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x17, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  761. 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
  762. 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
  763. 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x69, 0x6e, 0x67,
  764. 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x23, 0x2e, 0x6d, 0x65, 0x73, 0x73,
  765. 0x61, 0x67, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65,
  766. 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11,
  767. 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
  768. 0x65, 0x12, 0x51, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x75, 0x6c, 0x74, 0x69,
  769. 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x25, 0x2e, 0x6d, 0x65, 0x73,
  770. 0x73, 0x61, 0x67, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x75, 0x6c, 0x74, 0x69,
  771. 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
  772. 0x74, 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70,
  773. 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61,
  774. 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1e, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  775. 0x2e, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52,
  776. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  777. 0x2e, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52,
  778. 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x0b, 0x46, 0x69, 0x6e, 0x64, 0x55,
  779. 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x17, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
  780. 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x1a,
  781. 0x17, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73,
  782. 0x65, 0x72, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  783. }
  784. var (
  785. file_message_proto_rawDescOnce sync.Once
  786. file_message_proto_rawDescData = file_message_proto_rawDesc
  787. )
  788. func file_message_proto_rawDescGZIP() []byte {
  789. file_message_proto_rawDescOnce.Do(func() {
  790. file_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_message_proto_rawDescData)
  791. })
  792. return file_message_proto_rawDescData
  793. }
  794. var file_message_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
  795. var file_message_proto_goTypes = []interface{}{
  796. (*SendMsgRequest)(nil), // 0: message.SendMsgRequest
  797. (*ChangeReadStatusRequest)(nil), // 1: message.ChangeReadStatusRequest
  798. (*DeleteSingleMessageRequest)(nil), // 2: message.DeleteSingleMessageRequest
  799. (*DeleteMultipleMessageRequest)(nil), // 3: message.DeleteMultipleMessageRequest
  800. (*GetUnreadCountRequest)(nil), // 4: message.GetUnreadCountRequest
  801. (*Response)(nil), // 5: message.Response
  802. (*GetUnreadCountResponse)(nil), // 6: message.GetUnreadCountResponse
  803. (*FindUserMsgReq)(nil), // 7: message.FindUserMsgReq
  804. (*Messages)(nil), // 8: message.Messages
  805. (*FindUserMsgRes)(nil), // 9: message.FindUserMsgRes
  806. }
  807. var file_message_proto_depIdxs = []int32{
  808. 8, // 0: message.FindUserMsgRes.data:type_name -> message.Messages
  809. 1, // 1: message.Message.ChangeReadStatus:input_type -> message.ChangeReadStatusRequest
  810. 0, // 2: message.Message.SendUserMsg:input_type -> message.SendMsgRequest
  811. 2, // 3: message.Message.DeleteSingleMessage:input_type -> message.DeleteSingleMessageRequest
  812. 3, // 4: message.Message.DeleteMultipleMessage:input_type -> message.DeleteMultipleMessageRequest
  813. 4, // 5: message.Message.GetUnreadCount:input_type -> message.GetUnreadCountRequest
  814. 7, // 6: message.Message.FindUserMsg:input_type -> message.FindUserMsgReq
  815. 5, // 7: message.Message.ChangeReadStatus:output_type -> message.Response
  816. 5, // 8: message.Message.SendUserMsg:output_type -> message.Response
  817. 5, // 9: message.Message.DeleteSingleMessage:output_type -> message.Response
  818. 5, // 10: message.Message.DeleteMultipleMessage:output_type -> message.Response
  819. 6, // 11: message.Message.GetUnreadCount:output_type -> message.GetUnreadCountResponse
  820. 9, // 12: message.Message.FindUserMsg:output_type -> message.FindUserMsgRes
  821. 7, // [7:13] is the sub-list for method output_type
  822. 1, // [1:7] is the sub-list for method input_type
  823. 1, // [1:1] is the sub-list for extension type_name
  824. 1, // [1:1] is the sub-list for extension extendee
  825. 0, // [0:1] is the sub-list for field type_name
  826. }
  827. func init() { file_message_proto_init() }
  828. func file_message_proto_init() {
  829. if File_message_proto != nil {
  830. return
  831. }
  832. if !protoimpl.UnsafeEnabled {
  833. file_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  834. switch v := v.(*SendMsgRequest); i {
  835. case 0:
  836. return &v.state
  837. case 1:
  838. return &v.sizeCache
  839. case 2:
  840. return &v.unknownFields
  841. default:
  842. return nil
  843. }
  844. }
  845. file_message_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  846. switch v := v.(*ChangeReadStatusRequest); i {
  847. case 0:
  848. return &v.state
  849. case 1:
  850. return &v.sizeCache
  851. case 2:
  852. return &v.unknownFields
  853. default:
  854. return nil
  855. }
  856. }
  857. file_message_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  858. switch v := v.(*DeleteSingleMessageRequest); i {
  859. case 0:
  860. return &v.state
  861. case 1:
  862. return &v.sizeCache
  863. case 2:
  864. return &v.unknownFields
  865. default:
  866. return nil
  867. }
  868. }
  869. file_message_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  870. switch v := v.(*DeleteMultipleMessageRequest); i {
  871. case 0:
  872. return &v.state
  873. case 1:
  874. return &v.sizeCache
  875. case 2:
  876. return &v.unknownFields
  877. default:
  878. return nil
  879. }
  880. }
  881. file_message_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  882. switch v := v.(*GetUnreadCountRequest); i {
  883. case 0:
  884. return &v.state
  885. case 1:
  886. return &v.sizeCache
  887. case 2:
  888. return &v.unknownFields
  889. default:
  890. return nil
  891. }
  892. }
  893. file_message_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  894. switch v := v.(*Response); i {
  895. case 0:
  896. return &v.state
  897. case 1:
  898. return &v.sizeCache
  899. case 2:
  900. return &v.unknownFields
  901. default:
  902. return nil
  903. }
  904. }
  905. file_message_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  906. switch v := v.(*GetUnreadCountResponse); i {
  907. case 0:
  908. return &v.state
  909. case 1:
  910. return &v.sizeCache
  911. case 2:
  912. return &v.unknownFields
  913. default:
  914. return nil
  915. }
  916. }
  917. file_message_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  918. switch v := v.(*FindUserMsgReq); i {
  919. case 0:
  920. return &v.state
  921. case 1:
  922. return &v.sizeCache
  923. case 2:
  924. return &v.unknownFields
  925. default:
  926. return nil
  927. }
  928. }
  929. file_message_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  930. switch v := v.(*Messages); i {
  931. case 0:
  932. return &v.state
  933. case 1:
  934. return &v.sizeCache
  935. case 2:
  936. return &v.unknownFields
  937. default:
  938. return nil
  939. }
  940. }
  941. file_message_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  942. switch v := v.(*FindUserMsgRes); i {
  943. case 0:
  944. return &v.state
  945. case 1:
  946. return &v.sizeCache
  947. case 2:
  948. return &v.unknownFields
  949. default:
  950. return nil
  951. }
  952. }
  953. }
  954. type x struct{}
  955. out := protoimpl.TypeBuilder{
  956. File: protoimpl.DescBuilder{
  957. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  958. RawDescriptor: file_message_proto_rawDesc,
  959. NumEnums: 0,
  960. NumMessages: 10,
  961. NumExtensions: 0,
  962. NumServices: 1,
  963. },
  964. GoTypes: file_message_proto_goTypes,
  965. DependencyIndexes: file_message_proto_depIdxs,
  966. MessageInfos: file_message_proto_msgTypes,
  967. }.Build()
  968. File_message_proto = out.File
  969. file_message_proto_rawDesc = nil
  970. file_message_proto_goTypes = nil
  971. file_message_proto_depIdxs = nil
  972. }
  973. // Reference imports to suppress errors if they are not otherwise used.
  974. var _ context.Context
  975. var _ grpc.ClientConnInterface
  976. // This is a compile-time assertion to ensure that this generated file
  977. // is compatible with the grpc package it is being compiled against.
  978. const _ = grpc.SupportPackageIsVersion6
  979. // MessageClient is the client API for Message service.
  980. //
  981. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  982. type MessageClient interface {
  983. // 修改消息阅读状态
  984. ChangeReadStatus(ctx context.Context, in *ChangeReadStatusRequest, opts ...grpc.CallOption) (*Response, error)
  985. //指定用户发消息
  986. SendUserMsg(ctx context.Context, in *SendMsgRequest, opts ...grpc.CallOption) (*Response, error)
  987. // 删除单一消息
  988. DeleteSingleMessage(ctx context.Context, in *DeleteSingleMessageRequest, opts ...grpc.CallOption) (*Response, error)
  989. // 删除多条消息
  990. DeleteMultipleMessage(ctx context.Context, in *DeleteMultipleMessageRequest, opts ...grpc.CallOption) (*Response, error)
  991. // 查询指定用户未读消息合计
  992. GetUnreadCount(ctx context.Context, in *GetUnreadCountRequest, opts ...grpc.CallOption) (*GetUnreadCountResponse, error)
  993. //查询指定用户的历史消息记录
  994. FindUserMsg(ctx context.Context, in *FindUserMsgReq, opts ...grpc.CallOption) (*FindUserMsgRes, error)
  995. }
  996. type messageClient struct {
  997. cc grpc.ClientConnInterface
  998. }
  999. func NewMessageClient(cc grpc.ClientConnInterface) MessageClient {
  1000. return &messageClient{cc}
  1001. }
  1002. func (c *messageClient) ChangeReadStatus(ctx context.Context, in *ChangeReadStatusRequest, opts ...grpc.CallOption) (*Response, error) {
  1003. out := new(Response)
  1004. err := c.cc.Invoke(ctx, "/message.Message/ChangeReadStatus", in, out, opts...)
  1005. if err != nil {
  1006. return nil, err
  1007. }
  1008. return out, nil
  1009. }
  1010. func (c *messageClient) SendUserMsg(ctx context.Context, in *SendMsgRequest, opts ...grpc.CallOption) (*Response, error) {
  1011. out := new(Response)
  1012. err := c.cc.Invoke(ctx, "/message.Message/SendUserMsg", in, out, opts...)
  1013. if err != nil {
  1014. return nil, err
  1015. }
  1016. return out, nil
  1017. }
  1018. func (c *messageClient) DeleteSingleMessage(ctx context.Context, in *DeleteSingleMessageRequest, opts ...grpc.CallOption) (*Response, error) {
  1019. out := new(Response)
  1020. err := c.cc.Invoke(ctx, "/message.Message/DeleteSingleMessage", in, out, opts...)
  1021. if err != nil {
  1022. return nil, err
  1023. }
  1024. return out, nil
  1025. }
  1026. func (c *messageClient) DeleteMultipleMessage(ctx context.Context, in *DeleteMultipleMessageRequest, opts ...grpc.CallOption) (*Response, error) {
  1027. out := new(Response)
  1028. err := c.cc.Invoke(ctx, "/message.Message/DeleteMultipleMessage", in, out, opts...)
  1029. if err != nil {
  1030. return nil, err
  1031. }
  1032. return out, nil
  1033. }
  1034. func (c *messageClient) GetUnreadCount(ctx context.Context, in *GetUnreadCountRequest, opts ...grpc.CallOption) (*GetUnreadCountResponse, error) {
  1035. out := new(GetUnreadCountResponse)
  1036. err := c.cc.Invoke(ctx, "/message.Message/GetUnreadCount", in, out, opts...)
  1037. if err != nil {
  1038. return nil, err
  1039. }
  1040. return out, nil
  1041. }
  1042. func (c *messageClient) FindUserMsg(ctx context.Context, in *FindUserMsgReq, opts ...grpc.CallOption) (*FindUserMsgRes, error) {
  1043. out := new(FindUserMsgRes)
  1044. err := c.cc.Invoke(ctx, "/message.Message/FindUserMsg", in, out, opts...)
  1045. if err != nil {
  1046. return nil, err
  1047. }
  1048. return out, nil
  1049. }
  1050. // MessageServer is the server API for Message service.
  1051. type MessageServer interface {
  1052. // 修改消息阅读状态
  1053. ChangeReadStatus(context.Context, *ChangeReadStatusRequest) (*Response, error)
  1054. //指定用户发消息
  1055. SendUserMsg(context.Context, *SendMsgRequest) (*Response, error)
  1056. // 删除单一消息
  1057. DeleteSingleMessage(context.Context, *DeleteSingleMessageRequest) (*Response, error)
  1058. // 删除多条消息
  1059. DeleteMultipleMessage(context.Context, *DeleteMultipleMessageRequest) (*Response, error)
  1060. // 查询指定用户未读消息合计
  1061. GetUnreadCount(context.Context, *GetUnreadCountRequest) (*GetUnreadCountResponse, error)
  1062. //查询指定用户的历史消息记录
  1063. FindUserMsg(context.Context, *FindUserMsgReq) (*FindUserMsgRes, error)
  1064. }
  1065. // UnimplementedMessageServer can be embedded to have forward compatible implementations.
  1066. type UnimplementedMessageServer struct {
  1067. }
  1068. func (*UnimplementedMessageServer) ChangeReadStatus(context.Context, *ChangeReadStatusRequest) (*Response, error) {
  1069. return nil, status.Errorf(codes.Unimplemented, "method ChangeReadStatus not implemented")
  1070. }
  1071. func (*UnimplementedMessageServer) SendUserMsg(context.Context, *SendMsgRequest) (*Response, error) {
  1072. return nil, status.Errorf(codes.Unimplemented, "method SendUserMsg not implemented")
  1073. }
  1074. func (*UnimplementedMessageServer) DeleteSingleMessage(context.Context, *DeleteSingleMessageRequest) (*Response, error) {
  1075. return nil, status.Errorf(codes.Unimplemented, "method DeleteSingleMessage not implemented")
  1076. }
  1077. func (*UnimplementedMessageServer) DeleteMultipleMessage(context.Context, *DeleteMultipleMessageRequest) (*Response, error) {
  1078. return nil, status.Errorf(codes.Unimplemented, "method DeleteMultipleMessage not implemented")
  1079. }
  1080. func (*UnimplementedMessageServer) GetUnreadCount(context.Context, *GetUnreadCountRequest) (*GetUnreadCountResponse, error) {
  1081. return nil, status.Errorf(codes.Unimplemented, "method GetUnreadCount not implemented")
  1082. }
  1083. func (*UnimplementedMessageServer) FindUserMsg(context.Context, *FindUserMsgReq) (*FindUserMsgRes, error) {
  1084. return nil, status.Errorf(codes.Unimplemented, "method FindUserMsg not implemented")
  1085. }
  1086. func RegisterMessageServer(s *grpc.Server, srv MessageServer) {
  1087. s.RegisterService(&_Message_serviceDesc, srv)
  1088. }
  1089. func _Message_ChangeReadStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1090. in := new(ChangeReadStatusRequest)
  1091. if err := dec(in); err != nil {
  1092. return nil, err
  1093. }
  1094. if interceptor == nil {
  1095. return srv.(MessageServer).ChangeReadStatus(ctx, in)
  1096. }
  1097. info := &grpc.UnaryServerInfo{
  1098. Server: srv,
  1099. FullMethod: "/message.Message/ChangeReadStatus",
  1100. }
  1101. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1102. return srv.(MessageServer).ChangeReadStatus(ctx, req.(*ChangeReadStatusRequest))
  1103. }
  1104. return interceptor(ctx, in, info, handler)
  1105. }
  1106. func _Message_SendUserMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1107. in := new(SendMsgRequest)
  1108. if err := dec(in); err != nil {
  1109. return nil, err
  1110. }
  1111. if interceptor == nil {
  1112. return srv.(MessageServer).SendUserMsg(ctx, in)
  1113. }
  1114. info := &grpc.UnaryServerInfo{
  1115. Server: srv,
  1116. FullMethod: "/message.Message/SendUserMsg",
  1117. }
  1118. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1119. return srv.(MessageServer).SendUserMsg(ctx, req.(*SendMsgRequest))
  1120. }
  1121. return interceptor(ctx, in, info, handler)
  1122. }
  1123. func _Message_DeleteSingleMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1124. in := new(DeleteSingleMessageRequest)
  1125. if err := dec(in); err != nil {
  1126. return nil, err
  1127. }
  1128. if interceptor == nil {
  1129. return srv.(MessageServer).DeleteSingleMessage(ctx, in)
  1130. }
  1131. info := &grpc.UnaryServerInfo{
  1132. Server: srv,
  1133. FullMethod: "/message.Message/DeleteSingleMessage",
  1134. }
  1135. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1136. return srv.(MessageServer).DeleteSingleMessage(ctx, req.(*DeleteSingleMessageRequest))
  1137. }
  1138. return interceptor(ctx, in, info, handler)
  1139. }
  1140. func _Message_DeleteMultipleMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1141. in := new(DeleteMultipleMessageRequest)
  1142. if err := dec(in); err != nil {
  1143. return nil, err
  1144. }
  1145. if interceptor == nil {
  1146. return srv.(MessageServer).DeleteMultipleMessage(ctx, in)
  1147. }
  1148. info := &grpc.UnaryServerInfo{
  1149. Server: srv,
  1150. FullMethod: "/message.Message/DeleteMultipleMessage",
  1151. }
  1152. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1153. return srv.(MessageServer).DeleteMultipleMessage(ctx, req.(*DeleteMultipleMessageRequest))
  1154. }
  1155. return interceptor(ctx, in, info, handler)
  1156. }
  1157. func _Message_GetUnreadCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1158. in := new(GetUnreadCountRequest)
  1159. if err := dec(in); err != nil {
  1160. return nil, err
  1161. }
  1162. if interceptor == nil {
  1163. return srv.(MessageServer).GetUnreadCount(ctx, in)
  1164. }
  1165. info := &grpc.UnaryServerInfo{
  1166. Server: srv,
  1167. FullMethod: "/message.Message/GetUnreadCount",
  1168. }
  1169. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1170. return srv.(MessageServer).GetUnreadCount(ctx, req.(*GetUnreadCountRequest))
  1171. }
  1172. return interceptor(ctx, in, info, handler)
  1173. }
  1174. func _Message_FindUserMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1175. in := new(FindUserMsgReq)
  1176. if err := dec(in); err != nil {
  1177. return nil, err
  1178. }
  1179. if interceptor == nil {
  1180. return srv.(MessageServer).FindUserMsg(ctx, in)
  1181. }
  1182. info := &grpc.UnaryServerInfo{
  1183. Server: srv,
  1184. FullMethod: "/message.Message/FindUserMsg",
  1185. }
  1186. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1187. return srv.(MessageServer).FindUserMsg(ctx, req.(*FindUserMsgReq))
  1188. }
  1189. return interceptor(ctx, in, info, handler)
  1190. }
  1191. var _Message_serviceDesc = grpc.ServiceDesc{
  1192. ServiceName: "message.Message",
  1193. HandlerType: (*MessageServer)(nil),
  1194. Methods: []grpc.MethodDesc{
  1195. {
  1196. MethodName: "ChangeReadStatus",
  1197. Handler: _Message_ChangeReadStatus_Handler,
  1198. },
  1199. {
  1200. MethodName: "SendUserMsg",
  1201. Handler: _Message_SendUserMsg_Handler,
  1202. },
  1203. {
  1204. MethodName: "DeleteSingleMessage",
  1205. Handler: _Message_DeleteSingleMessage_Handler,
  1206. },
  1207. {
  1208. MethodName: "DeleteMultipleMessage",
  1209. Handler: _Message_DeleteMultipleMessage_Handler,
  1210. },
  1211. {
  1212. MethodName: "GetUnreadCount",
  1213. Handler: _Message_GetUnreadCount_Handler,
  1214. },
  1215. {
  1216. MethodName: "FindUserMsg",
  1217. Handler: _Message_FindUserMsg_Handler,
  1218. },
  1219. },
  1220. Streams: []grpc.StreamDesc{},
  1221. Metadata: "message.proto",
  1222. }