123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.23.0
- // protoc v3.11.4
- // source: message.proto
- package message
- import (
- context "context"
- proto "github.com/golang/protobuf/proto"
- grpc "google.golang.org/grpc"
- codes "google.golang.org/grpc/codes"
- status "google.golang.org/grpc/status"
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- reflect "reflect"
- sync "sync"
- )
- const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
- )
- // This is a compile-time assertion that a sufficiently up-to-date version
- // of the legacy proto package is being used.
- const _ = proto.ProtoPackageIsVersion4
- type SendMsgRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- ReceiveUserId string `protobuf:"bytes,1,opt,name=receiveUserId,proto3" json:"receiveUserId,omitempty"` //接收方用户ID
- ReceiveName string `protobuf:"bytes,2,opt,name=receiveName,proto3" json:"receiveName,omitempty"` //接收方用户名
- SendUserId string `protobuf:"bytes,3,opt,name=sendUserId,proto3" json:"sendUserId,omitempty"` //发送方用户ID
- SendName string `protobuf:"bytes,4,opt,name=sendName,proto3" json:"sendName,omitempty"` //发送方用户名
- Title string `protobuf:"bytes,5,opt,name=title,proto3" json:"title,omitempty"` //主题
- Content string `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"` //内容
- MsgType int64 `protobuf:"varint,7,opt,name=msgType,proto3" json:"msgType,omitempty"` //消息类型 1:客服 2:系统通知 3:营销 4:用户会话
- Link string `protobuf:"bytes,8,opt,name=link,proto3" json:"link,omitempty"` //跳转链接
- CiteId int64 `protobuf:"varint,9,opt,name=citeId,proto3" json:"citeId,omitempty"` //引用id
- Appid string `protobuf:"bytes,10,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
- }
- func (x *SendMsgRequest) Reset() {
- *x = SendMsgRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_message_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *SendMsgRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*SendMsgRequest) ProtoMessage() {}
- func (x *SendMsgRequest) ProtoReflect() protoreflect.Message {
- mi := &file_message_proto_msgTypes[0]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use SendMsgRequest.ProtoReflect.Descriptor instead.
- func (*SendMsgRequest) Descriptor() ([]byte, []int) {
- return file_message_proto_rawDescGZIP(), []int{0}
- }
- func (x *SendMsgRequest) GetReceiveUserId() string {
- if x != nil {
- return x.ReceiveUserId
- }
- return ""
- }
- func (x *SendMsgRequest) GetReceiveName() string {
- if x != nil {
- return x.ReceiveName
- }
- return ""
- }
- func (x *SendMsgRequest) GetSendUserId() string {
- if x != nil {
- return x.SendUserId
- }
- return ""
- }
- func (x *SendMsgRequest) GetSendName() string {
- if x != nil {
- return x.SendName
- }
- return ""
- }
- func (x *SendMsgRequest) GetTitle() string {
- if x != nil {
- return x.Title
- }
- return ""
- }
- func (x *SendMsgRequest) GetContent() string {
- if x != nil {
- return x.Content
- }
- return ""
- }
- func (x *SendMsgRequest) GetMsgType() int64 {
- if x != nil {
- return x.MsgType
- }
- return 0
- }
- func (x *SendMsgRequest) GetLink() string {
- if x != nil {
- return x.Link
- }
- return ""
- }
- func (x *SendMsgRequest) GetCiteId() int64 {
- if x != nil {
- return x.CiteId
- }
- return 0
- }
- func (x *SendMsgRequest) GetAppid() string {
- if x != nil {
- return x.Appid
- }
- return ""
- }
- type ChangeReadStatusRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 消息id
- ReadStatus int64 `protobuf:"varint,2,opt,name=readStatus,proto3" json:"readStatus,omitempty"` // 阅读状态 0-未读 1-已读
- Appid string `protobuf:"bytes,3,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
- }
- func (x *ChangeReadStatusRequest) Reset() {
- *x = ChangeReadStatusRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_message_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *ChangeReadStatusRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*ChangeReadStatusRequest) ProtoMessage() {}
- func (x *ChangeReadStatusRequest) ProtoReflect() protoreflect.Message {
- mi := &file_message_proto_msgTypes[1]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use ChangeReadStatusRequest.ProtoReflect.Descriptor instead.
- func (*ChangeReadStatusRequest) Descriptor() ([]byte, []int) {
- return file_message_proto_rawDescGZIP(), []int{1}
- }
- func (x *ChangeReadStatusRequest) GetId() int64 {
- if x != nil {
- return x.Id
- }
- return 0
- }
- func (x *ChangeReadStatusRequest) GetReadStatus() int64 {
- if x != nil {
- return x.ReadStatus
- }
- return 0
- }
- func (x *ChangeReadStatusRequest) GetAppid() string {
- if x != nil {
- return x.Appid
- }
- return ""
- }
- // 删除单一消息
- type DeleteSingleMessageRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 消息id
- Appid string `protobuf:"bytes,3,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
- }
- func (x *DeleteSingleMessageRequest) Reset() {
- *x = DeleteSingleMessageRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_message_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *DeleteSingleMessageRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*DeleteSingleMessageRequest) ProtoMessage() {}
- func (x *DeleteSingleMessageRequest) ProtoReflect() protoreflect.Message {
- mi := &file_message_proto_msgTypes[2]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use DeleteSingleMessageRequest.ProtoReflect.Descriptor instead.
- func (*DeleteSingleMessageRequest) Descriptor() ([]byte, []int) {
- return file_message_proto_rawDescGZIP(), []int{2}
- }
- func (x *DeleteSingleMessageRequest) GetId() int64 {
- if x != nil {
- return x.Id
- }
- return 0
- }
- func (x *DeleteSingleMessageRequest) GetAppid() string {
- if x != nil {
- return x.Appid
- }
- return ""
- }
- // 批量删除消息
- type DeleteMultipleMessageRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // 多条消息id, 逗号分隔
- Appid string `protobuf:"bytes,3,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
- }
- func (x *DeleteMultipleMessageRequest) Reset() {
- *x = DeleteMultipleMessageRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_message_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *DeleteMultipleMessageRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*DeleteMultipleMessageRequest) ProtoMessage() {}
- func (x *DeleteMultipleMessageRequest) ProtoReflect() protoreflect.Message {
- mi := &file_message_proto_msgTypes[3]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use DeleteMultipleMessageRequest.ProtoReflect.Descriptor instead.
- func (*DeleteMultipleMessageRequest) Descriptor() ([]byte, []int) {
- return file_message_proto_rawDescGZIP(), []int{3}
- }
- func (x *DeleteMultipleMessageRequest) GetId() string {
- if x != nil {
- return x.Id
- }
- return ""
- }
- func (x *DeleteMultipleMessageRequest) GetAppid() string {
- if x != nil {
- return x.Appid
- }
- return ""
- }
- // 查询指定用户未读消息合计
- type GetUnreadCountRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` // 用户id
- Appid string `protobuf:"bytes,2,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
- }
- func (x *GetUnreadCountRequest) Reset() {
- *x = GetUnreadCountRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_message_proto_msgTypes[4]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *GetUnreadCountRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*GetUnreadCountRequest) ProtoMessage() {}
- func (x *GetUnreadCountRequest) ProtoReflect() protoreflect.Message {
- mi := &file_message_proto_msgTypes[4]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use GetUnreadCountRequest.ProtoReflect.Descriptor instead.
- func (*GetUnreadCountRequest) Descriptor() ([]byte, []int) {
- return file_message_proto_rawDescGZIP(), []int{4}
- }
- func (x *GetUnreadCountRequest) GetUserId() string {
- if x != nil {
- return x.UserId
- }
- return ""
- }
- func (x *GetUnreadCountRequest) GetAppid() string {
- if x != nil {
- return x.Appid
- }
- return ""
- }
- type Response struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //状态码
- Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
- }
- func (x *Response) Reset() {
- *x = Response{}
- if protoimpl.UnsafeEnabled {
- mi := &file_message_proto_msgTypes[5]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Response) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Response) ProtoMessage() {}
- func (x *Response) ProtoReflect() protoreflect.Message {
- mi := &file_message_proto_msgTypes[5]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use Response.ProtoReflect.Descriptor instead.
- func (*Response) Descriptor() ([]byte, []int) {
- return file_message_proto_rawDescGZIP(), []int{5}
- }
- func (x *Response) GetCode() int64 {
- if x != nil {
- return x.Code
- }
- return 0
- }
- func (x *Response) GetMessage() string {
- if x != nil {
- return x.Message
- }
- return ""
- }
- type GetUnreadCountResponse struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //状态码
- Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
- Count int64 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` //
- }
- func (x *GetUnreadCountResponse) Reset() {
- *x = GetUnreadCountResponse{}
- if protoimpl.UnsafeEnabled {
- mi := &file_message_proto_msgTypes[6]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *GetUnreadCountResponse) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*GetUnreadCountResponse) ProtoMessage() {}
- func (x *GetUnreadCountResponse) ProtoReflect() protoreflect.Message {
- mi := &file_message_proto_msgTypes[6]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use GetUnreadCountResponse.ProtoReflect.Descriptor instead.
- func (*GetUnreadCountResponse) Descriptor() ([]byte, []int) {
- return file_message_proto_rawDescGZIP(), []int{6}
- }
- func (x *GetUnreadCountResponse) GetCode() int64 {
- if x != nil {
- return x.Code
- }
- return 0
- }
- func (x *GetUnreadCountResponse) GetMessage() string {
- if x != nil {
- return x.Message
- }
- return ""
- }
- func (x *GetUnreadCountResponse) GetCount() int64 {
- if x != nil {
- return x.Count
- }
- return 0
- }
- type FindUserMsgReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` //用户id
- ReceiveUserId string `protobuf:"bytes,2,opt,name=receiveUserId,proto3" json:"receiveUserId,omitempty"` //聊天方用户id
- Appid string `protobuf:"bytes,3,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
- OffSet int64 `protobuf:"varint,4,opt,name=offSet,proto3" json:"offSet,omitempty"` //当前
- PageSize int64 `protobuf:"varint,5,opt,name=pageSize,proto3" json:"pageSize,omitempty"` //大小
- }
- func (x *FindUserMsgReq) Reset() {
- *x = FindUserMsgReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_message_proto_msgTypes[7]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *FindUserMsgReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*FindUserMsgReq) ProtoMessage() {}
- func (x *FindUserMsgReq) ProtoReflect() protoreflect.Message {
- mi := &file_message_proto_msgTypes[7]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use FindUserMsgReq.ProtoReflect.Descriptor instead.
- func (*FindUserMsgReq) Descriptor() ([]byte, []int) {
- return file_message_proto_rawDescGZIP(), []int{7}
- }
- func (x *FindUserMsgReq) GetUserId() string {
- if x != nil {
- return x.UserId
- }
- return ""
- }
- func (x *FindUserMsgReq) GetReceiveUserId() string {
- if x != nil {
- return x.ReceiveUserId
- }
- return ""
- }
- func (x *FindUserMsgReq) GetAppid() string {
- if x != nil {
- return x.Appid
- }
- return ""
- }
- func (x *FindUserMsgReq) GetOffSet() int64 {
- if x != nil {
- return x.OffSet
- }
- return 0
- }
- func (x *FindUserMsgReq) GetPageSize() int64 {
- if x != nil {
- return x.PageSize
- }
- return 0
- }
- type Messages struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- ReceiveUserId string `protobuf:"bytes,1,opt,name=receiveUserId,proto3" json:"receiveUserId,omitempty"` //接收方用户ID
- ReceiveName string `protobuf:"bytes,2,opt,name=receiveName,proto3" json:"receiveName,omitempty"` //接收方用户名
- SendUserId string `protobuf:"bytes,3,opt,name=sendUserId,proto3" json:"sendUserId,omitempty"` //发送方用户ID
- SendName string `protobuf:"bytes,4,opt,name=sendName,proto3" json:"sendName,omitempty"` //发送方用户名
- Title string `protobuf:"bytes,5,opt,name=title,proto3" json:"title,omitempty"` //主题
- Content string `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"` //内容
- MsgType int64 `protobuf:"varint,7,opt,name=msgType,proto3" json:"msgType,omitempty"` //消息类型 1:客服 2:系统通知 3:营销 4:用户会话
- Link string `protobuf:"bytes,8,opt,name=link,proto3" json:"link,omitempty"` //跳转链接
- CiteId int64 `protobuf:"varint,9,opt,name=citeId,proto3" json:"citeId,omitempty"` //引用id
- IsRead int64 `protobuf:"varint,10,opt,name=isRead,proto3" json:"isRead,omitempty"` //已读未读 0:未读 1:已读
- Createtime string `protobuf:"bytes,11,opt,name=createtime,proto3" json:"createtime,omitempty"`
- Appid string `protobuf:"bytes,12,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
- }
- func (x *Messages) Reset() {
- *x = Messages{}
- if protoimpl.UnsafeEnabled {
- mi := &file_message_proto_msgTypes[8]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *Messages) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*Messages) ProtoMessage() {}
- func (x *Messages) ProtoReflect() protoreflect.Message {
- mi := &file_message_proto_msgTypes[8]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use Messages.ProtoReflect.Descriptor instead.
- func (*Messages) Descriptor() ([]byte, []int) {
- return file_message_proto_rawDescGZIP(), []int{8}
- }
- func (x *Messages) GetReceiveUserId() string {
- if x != nil {
- return x.ReceiveUserId
- }
- return ""
- }
- func (x *Messages) GetReceiveName() string {
- if x != nil {
- return x.ReceiveName
- }
- return ""
- }
- func (x *Messages) GetSendUserId() string {
- if x != nil {
- return x.SendUserId
- }
- return ""
- }
- func (x *Messages) GetSendName() string {
- if x != nil {
- return x.SendName
- }
- return ""
- }
- func (x *Messages) GetTitle() string {
- if x != nil {
- return x.Title
- }
- return ""
- }
- func (x *Messages) GetContent() string {
- if x != nil {
- return x.Content
- }
- return ""
- }
- func (x *Messages) GetMsgType() int64 {
- if x != nil {
- return x.MsgType
- }
- return 0
- }
- func (x *Messages) GetLink() string {
- if x != nil {
- return x.Link
- }
- return ""
- }
- func (x *Messages) GetCiteId() int64 {
- if x != nil {
- return x.CiteId
- }
- return 0
- }
- func (x *Messages) GetIsRead() int64 {
- if x != nil {
- return x.IsRead
- }
- return 0
- }
- func (x *Messages) GetCreatetime() string {
- if x != nil {
- return x.Createtime
- }
- return ""
- }
- func (x *Messages) GetAppid() string {
- if x != nil {
- return x.Appid
- }
- return ""
- }
- type FindUserMsgRes struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //状态码
- Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息
- Data []*Messages `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` //
- Count int64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` //总数
- }
- func (x *FindUserMsgRes) Reset() {
- *x = FindUserMsgRes{}
- if protoimpl.UnsafeEnabled {
- mi := &file_message_proto_msgTypes[9]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *FindUserMsgRes) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*FindUserMsgRes) ProtoMessage() {}
- func (x *FindUserMsgRes) ProtoReflect() protoreflect.Message {
- mi := &file_message_proto_msgTypes[9]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use FindUserMsgRes.ProtoReflect.Descriptor instead.
- func (*FindUserMsgRes) Descriptor() ([]byte, []int) {
- return file_message_proto_rawDescGZIP(), []int{9}
- }
- func (x *FindUserMsgRes) GetCode() int64 {
- if x != nil {
- return x.Code
- }
- return 0
- }
- func (x *FindUserMsgRes) GetMessage() string {
- if x != nil {
- return x.Message
- }
- return ""
- }
- func (x *FindUserMsgRes) GetData() []*Messages {
- if x != nil {
- return x.Data
- }
- return nil
- }
- func (x *FindUserMsgRes) GetCount() int64 {
- if x != nil {
- return x.Count
- }
- return 0
- }
- type GetClassUnreadCountReq struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` // 用户id
- MsgType int64 `protobuf:"varint,2,opt,name=msgType,proto3" json:"msgType,omitempty"` //分类 1:客服 2:系统通知 3:营销 4:用户会话
- Appid string `protobuf:"bytes,3,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识
- }
- func (x *GetClassUnreadCountReq) Reset() {
- *x = GetClassUnreadCountReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_message_proto_msgTypes[10]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *GetClassUnreadCountReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*GetClassUnreadCountReq) ProtoMessage() {}
- func (x *GetClassUnreadCountReq) ProtoReflect() protoreflect.Message {
- mi := &file_message_proto_msgTypes[10]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use GetClassUnreadCountReq.ProtoReflect.Descriptor instead.
- func (*GetClassUnreadCountReq) Descriptor() ([]byte, []int) {
- return file_message_proto_rawDescGZIP(), []int{10}
- }
- func (x *GetClassUnreadCountReq) GetUserId() string {
- if x != nil {
- return x.UserId
- }
- return ""
- }
- func (x *GetClassUnreadCountReq) GetMsgType() int64 {
- if x != nil {
- return x.MsgType
- }
- return 0
- }
- func (x *GetClassUnreadCountReq) GetAppid() string {
- if x != nil {
- return x.Appid
- }
- return ""
- }
- var File_message_proto protoreflect.FileDescriptor
- var file_message_proto_rawDesc = []byte{
- 0x0a, 0x0d, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
- 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0xa0, 0x02, 0x0a, 0x0e, 0x53, 0x65, 0x6e,
- 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0d, 0x72,
- 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01,
- 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49,
- 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4e, 0x61, 0x6d, 0x65,
- 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4e,
- 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x49,
- 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x55, 0x73, 0x65,
- 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x18,
- 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12,
- 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
- 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74,
- 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12,
- 0x18, 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03,
- 0x52, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x6e,
- 0x6b, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x12, 0x16, 0x0a,
- 0x06, 0x63, 0x69, 0x74, 0x65, 0x49, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x63,
- 0x69, 0x74, 0x65, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x0a,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x5f, 0x0a, 0x17, 0x43,
- 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52,
- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
- 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, 0x61, 0x64, 0x53, 0x74,
- 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x72, 0x65, 0x61, 0x64,
- 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18,
- 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x42, 0x0a, 0x1a,
- 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73,
- 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,
- 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70,
- 0x70, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64,
- 0x22, 0x44, 0x0a, 0x1c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70,
- 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
- 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64,
- 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x45, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72,
- 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
- 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
- 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64,
- 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x38, 0x0a,
- 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64,
- 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a,
- 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
- 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x5c, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x55, 0x6e,
- 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
- 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
- 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
- 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12,
- 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05,
- 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x98, 0x01, 0x0a, 0x0e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73,
- 0x65, 0x72, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72,
- 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64,
- 0x12, 0x24, 0x0a, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49,
- 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65,
- 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18,
- 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06,
- 0x6f, 0x66, 0x66, 0x53, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, 0x66,
- 0x66, 0x53, 0x65, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65,
- 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65,
- 0x22, 0xd2, 0x02, 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x12, 0x24, 0x0a,
- 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01,
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65,
- 0x72, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4e, 0x61,
- 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76,
- 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x55, 0x73, 0x65,
- 0x72, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x55,
- 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x4e, 0x61, 0x6d,
- 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x4e, 0x61, 0x6d,
- 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65,
- 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e,
- 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01,
- 0x28, 0x03, 0x52, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6c,
- 0x69, 0x6e, 0x6b, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x12,
- 0x16, 0x0a, 0x06, 0x63, 0x69, 0x74, 0x65, 0x49, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52,
- 0x06, 0x63, 0x69, 0x74, 0x65, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x52, 0x65, 0x61,
- 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x69, 0x73, 0x52, 0x65, 0x61, 0x64, 0x12,
- 0x1e, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0b, 0x20,
- 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x12,
- 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
- 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x7b, 0x0a, 0x0e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65,
- 0x72, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18,
- 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d,
- 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65,
- 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x25, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20,
- 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x65,
- 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05,
- 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75,
- 0x6e, 0x74, 0x22, 0x60, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x55, 0x6e,
- 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06,
- 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73,
- 0x65, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18,
- 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14,
- 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61,
- 0x70, 0x70, 0x69, 0x64, 0x32, 0x9c, 0x04, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
- 0x12, 0x47, 0x0a, 0x10, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64, 0x53, 0x74,
- 0x61, 0x74, 0x75, 0x73, 0x12, 0x20, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x43,
- 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52,
- 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
- 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x0b, 0x53, 0x65, 0x6e,
- 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x17, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61,
- 0x67, 0x65, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
- 0x74, 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70,
- 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x69,
- 0x6e, 0x67, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x23, 0x2e, 0x6d, 0x65,
- 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x69, 0x6e, 0x67,
- 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
- 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f,
- 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x75, 0x6c,
- 0x74, 0x69, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x25, 0x2e, 0x6d,
- 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x75, 0x6c,
- 0x74, 0x69, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75,
- 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65,
- 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72,
- 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1e, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61,
- 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e,
- 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61,
- 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e,
- 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x0b, 0x46, 0x69, 0x6e,
- 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x17, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61,
- 0x67, 0x65, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x52, 0x65,
- 0x71, 0x1a, 0x17, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x46, 0x69, 0x6e, 0x64,
- 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x12, 0x57, 0x0a, 0x13, 0x47, 0x65,
- 0x74, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e,
- 0x74, 0x12, 0x1f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x43,
- 0x6c, 0x61, 0x73, 0x73, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52,
- 0x65, 0x71, 0x1a, 0x1f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74,
- 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f,
- 0x6e, 0x73, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
- }
- var (
- file_message_proto_rawDescOnce sync.Once
- file_message_proto_rawDescData = file_message_proto_rawDesc
- )
- func file_message_proto_rawDescGZIP() []byte {
- file_message_proto_rawDescOnce.Do(func() {
- file_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_message_proto_rawDescData)
- })
- return file_message_proto_rawDescData
- }
- var file_message_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
- var file_message_proto_goTypes = []interface{}{
- (*SendMsgRequest)(nil), // 0: message.SendMsgRequest
- (*ChangeReadStatusRequest)(nil), // 1: message.ChangeReadStatusRequest
- (*DeleteSingleMessageRequest)(nil), // 2: message.DeleteSingleMessageRequest
- (*DeleteMultipleMessageRequest)(nil), // 3: message.DeleteMultipleMessageRequest
- (*GetUnreadCountRequest)(nil), // 4: message.GetUnreadCountRequest
- (*Response)(nil), // 5: message.Response
- (*GetUnreadCountResponse)(nil), // 6: message.GetUnreadCountResponse
- (*FindUserMsgReq)(nil), // 7: message.FindUserMsgReq
- (*Messages)(nil), // 8: message.Messages
- (*FindUserMsgRes)(nil), // 9: message.FindUserMsgRes
- (*GetClassUnreadCountReq)(nil), // 10: message.GetClassUnreadCountReq
- }
- var file_message_proto_depIdxs = []int32{
- 8, // 0: message.FindUserMsgRes.data:type_name -> message.Messages
- 1, // 1: message.Message.ChangeReadStatus:input_type -> message.ChangeReadStatusRequest
- 0, // 2: message.Message.SendUserMsg:input_type -> message.SendMsgRequest
- 2, // 3: message.Message.DeleteSingleMessage:input_type -> message.DeleteSingleMessageRequest
- 3, // 4: message.Message.DeleteMultipleMessage:input_type -> message.DeleteMultipleMessageRequest
- 4, // 5: message.Message.GetUnreadCount:input_type -> message.GetUnreadCountRequest
- 7, // 6: message.Message.FindUserMsg:input_type -> message.FindUserMsgReq
- 10, // 7: message.Message.GetClassUnreadCount:input_type -> message.GetClassUnreadCountReq
- 5, // 8: message.Message.ChangeReadStatus:output_type -> message.Response
- 5, // 9: message.Message.SendUserMsg:output_type -> message.Response
- 5, // 10: message.Message.DeleteSingleMessage:output_type -> message.Response
- 5, // 11: message.Message.DeleteMultipleMessage:output_type -> message.Response
- 6, // 12: message.Message.GetUnreadCount:output_type -> message.GetUnreadCountResponse
- 9, // 13: message.Message.FindUserMsg:output_type -> message.FindUserMsgRes
- 6, // 14: message.Message.GetClassUnreadCount:output_type -> message.GetUnreadCountResponse
- 8, // [8:15] is the sub-list for method output_type
- 1, // [1:8] is the sub-list for method input_type
- 1, // [1:1] is the sub-list for extension type_name
- 1, // [1:1] is the sub-list for extension extendee
- 0, // [0:1] is the sub-list for field type_name
- }
- func init() { file_message_proto_init() }
- func file_message_proto_init() {
- if File_message_proto != nil {
- return
- }
- if !protoimpl.UnsafeEnabled {
- file_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*SendMsgRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_message_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*ChangeReadStatusRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_message_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*DeleteSingleMessageRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_message_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*DeleteMultipleMessageRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_message_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*GetUnreadCountRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_message_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Response); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_message_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*GetUnreadCountResponse); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_message_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*FindUserMsgReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_message_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Messages); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_message_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*FindUserMsgRes); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_message_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*GetClassUnreadCountReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: file_message_proto_rawDesc,
- NumEnums: 0,
- NumMessages: 11,
- NumExtensions: 0,
- NumServices: 1,
- },
- GoTypes: file_message_proto_goTypes,
- DependencyIndexes: file_message_proto_depIdxs,
- MessageInfos: file_message_proto_msgTypes,
- }.Build()
- File_message_proto = out.File
- file_message_proto_rawDesc = nil
- file_message_proto_goTypes = nil
- file_message_proto_depIdxs = nil
- }
- // Reference imports to suppress errors if they are not otherwise used.
- var _ context.Context
- var _ grpc.ClientConnInterface
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the grpc package it is being compiled against.
- const _ = grpc.SupportPackageIsVersion6
- // MessageClient is the client API for Message service.
- //
- // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
- type MessageClient interface {
- // 修改消息阅读状态
- ChangeReadStatus(ctx context.Context, in *ChangeReadStatusRequest, opts ...grpc.CallOption) (*Response, error)
- //指定用户发消息
- SendUserMsg(ctx context.Context, in *SendMsgRequest, opts ...grpc.CallOption) (*Response, error)
- // 删除单一消息
- DeleteSingleMessage(ctx context.Context, in *DeleteSingleMessageRequest, opts ...grpc.CallOption) (*Response, error)
- // 删除多条消息
- DeleteMultipleMessage(ctx context.Context, in *DeleteMultipleMessageRequest, opts ...grpc.CallOption) (*Response, error)
- // 查询指定用户未读消息合计
- GetUnreadCount(ctx context.Context, in *GetUnreadCountRequest, opts ...grpc.CallOption) (*GetUnreadCountResponse, error)
- //查询指定用户的历史消息记录
- FindUserMsg(ctx context.Context, in *FindUserMsgReq, opts ...grpc.CallOption) (*FindUserMsgRes, error)
- // 查询指定用户指定分类的未读消息合计
- GetClassUnreadCount(ctx context.Context, in *GetClassUnreadCountReq, opts ...grpc.CallOption) (*GetUnreadCountResponse, error)
- }
- type messageClient struct {
- cc grpc.ClientConnInterface
- }
- func NewMessageClient(cc grpc.ClientConnInterface) MessageClient {
- return &messageClient{cc}
- }
- func (c *messageClient) ChangeReadStatus(ctx context.Context, in *ChangeReadStatusRequest, opts ...grpc.CallOption) (*Response, error) {
- out := new(Response)
- err := c.cc.Invoke(ctx, "/message.Message/ChangeReadStatus", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *messageClient) SendUserMsg(ctx context.Context, in *SendMsgRequest, opts ...grpc.CallOption) (*Response, error) {
- out := new(Response)
- err := c.cc.Invoke(ctx, "/message.Message/SendUserMsg", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *messageClient) DeleteSingleMessage(ctx context.Context, in *DeleteSingleMessageRequest, opts ...grpc.CallOption) (*Response, error) {
- out := new(Response)
- err := c.cc.Invoke(ctx, "/message.Message/DeleteSingleMessage", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *messageClient) DeleteMultipleMessage(ctx context.Context, in *DeleteMultipleMessageRequest, opts ...grpc.CallOption) (*Response, error) {
- out := new(Response)
- err := c.cc.Invoke(ctx, "/message.Message/DeleteMultipleMessage", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *messageClient) GetUnreadCount(ctx context.Context, in *GetUnreadCountRequest, opts ...grpc.CallOption) (*GetUnreadCountResponse, error) {
- out := new(GetUnreadCountResponse)
- err := c.cc.Invoke(ctx, "/message.Message/GetUnreadCount", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *messageClient) FindUserMsg(ctx context.Context, in *FindUserMsgReq, opts ...grpc.CallOption) (*FindUserMsgRes, error) {
- out := new(FindUserMsgRes)
- err := c.cc.Invoke(ctx, "/message.Message/FindUserMsg", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *messageClient) GetClassUnreadCount(ctx context.Context, in *GetClassUnreadCountReq, opts ...grpc.CallOption) (*GetUnreadCountResponse, error) {
- out := new(GetUnreadCountResponse)
- err := c.cc.Invoke(ctx, "/message.Message/GetClassUnreadCount", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // MessageServer is the server API for Message service.
- type MessageServer interface {
- // 修改消息阅读状态
- ChangeReadStatus(context.Context, *ChangeReadStatusRequest) (*Response, error)
- //指定用户发消息
- SendUserMsg(context.Context, *SendMsgRequest) (*Response, error)
- // 删除单一消息
- DeleteSingleMessage(context.Context, *DeleteSingleMessageRequest) (*Response, error)
- // 删除多条消息
- DeleteMultipleMessage(context.Context, *DeleteMultipleMessageRequest) (*Response, error)
- // 查询指定用户未读消息合计
- GetUnreadCount(context.Context, *GetUnreadCountRequest) (*GetUnreadCountResponse, error)
- //查询指定用户的历史消息记录
- FindUserMsg(context.Context, *FindUserMsgReq) (*FindUserMsgRes, error)
- // 查询指定用户指定分类的未读消息合计
- GetClassUnreadCount(context.Context, *GetClassUnreadCountReq) (*GetUnreadCountResponse, error)
- }
- // UnimplementedMessageServer can be embedded to have forward compatible implementations.
- type UnimplementedMessageServer struct {
- }
- func (*UnimplementedMessageServer) ChangeReadStatus(context.Context, *ChangeReadStatusRequest) (*Response, error) {
- return nil, status.Errorf(codes.Unimplemented, "method ChangeReadStatus not implemented")
- }
- func (*UnimplementedMessageServer) SendUserMsg(context.Context, *SendMsgRequest) (*Response, error) {
- return nil, status.Errorf(codes.Unimplemented, "method SendUserMsg not implemented")
- }
- func (*UnimplementedMessageServer) DeleteSingleMessage(context.Context, *DeleteSingleMessageRequest) (*Response, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DeleteSingleMessage not implemented")
- }
- func (*UnimplementedMessageServer) DeleteMultipleMessage(context.Context, *DeleteMultipleMessageRequest) (*Response, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DeleteMultipleMessage not implemented")
- }
- func (*UnimplementedMessageServer) GetUnreadCount(context.Context, *GetUnreadCountRequest) (*GetUnreadCountResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetUnreadCount not implemented")
- }
- func (*UnimplementedMessageServer) FindUserMsg(context.Context, *FindUserMsgReq) (*FindUserMsgRes, error) {
- return nil, status.Errorf(codes.Unimplemented, "method FindUserMsg not implemented")
- }
- func (*UnimplementedMessageServer) GetClassUnreadCount(context.Context, *GetClassUnreadCountReq) (*GetUnreadCountResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetClassUnreadCount not implemented")
- }
- func RegisterMessageServer(s *grpc.Server, srv MessageServer) {
- s.RegisterService(&_Message_serviceDesc, srv)
- }
- func _Message_ChangeReadStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(ChangeReadStatusRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(MessageServer).ChangeReadStatus(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/message.Message/ChangeReadStatus",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(MessageServer).ChangeReadStatus(ctx, req.(*ChangeReadStatusRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Message_SendUserMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(SendMsgRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(MessageServer).SendUserMsg(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/message.Message/SendUserMsg",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(MessageServer).SendUserMsg(ctx, req.(*SendMsgRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Message_DeleteSingleMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DeleteSingleMessageRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(MessageServer).DeleteSingleMessage(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/message.Message/DeleteSingleMessage",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(MessageServer).DeleteSingleMessage(ctx, req.(*DeleteSingleMessageRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Message_DeleteMultipleMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(DeleteMultipleMessageRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(MessageServer).DeleteMultipleMessage(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/message.Message/DeleteMultipleMessage",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(MessageServer).DeleteMultipleMessage(ctx, req.(*DeleteMultipleMessageRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Message_GetUnreadCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GetUnreadCountRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(MessageServer).GetUnreadCount(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/message.Message/GetUnreadCount",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(MessageServer).GetUnreadCount(ctx, req.(*GetUnreadCountRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Message_FindUserMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(FindUserMsgReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(MessageServer).FindUserMsg(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/message.Message/FindUserMsg",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(MessageServer).FindUserMsg(ctx, req.(*FindUserMsgReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Message_GetClassUnreadCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GetClassUnreadCountReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(MessageServer).GetClassUnreadCount(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/message.Message/GetClassUnreadCount",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(MessageServer).GetClassUnreadCount(ctx, req.(*GetClassUnreadCountReq))
- }
- return interceptor(ctx, in, info, handler)
- }
- var _Message_serviceDesc = grpc.ServiceDesc{
- ServiceName: "message.Message",
- HandlerType: (*MessageServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "ChangeReadStatus",
- Handler: _Message_ChangeReadStatus_Handler,
- },
- {
- MethodName: "SendUserMsg",
- Handler: _Message_SendUserMsg_Handler,
- },
- {
- MethodName: "DeleteSingleMessage",
- Handler: _Message_DeleteSingleMessage_Handler,
- },
- {
- MethodName: "DeleteMultipleMessage",
- Handler: _Message_DeleteMultipleMessage_Handler,
- },
- {
- MethodName: "GetUnreadCount",
- Handler: _Message_GetUnreadCount_Handler,
- },
- {
- MethodName: "FindUserMsg",
- Handler: _Message_FindUserMsg_Handler,
- },
- {
- MethodName: "GetClassUnreadCount",
- Handler: _Message_GetClassUnreadCount_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "message.proto",
- }
|