1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.25.0
- // protoc v3.15.1
- // 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"` //大小
- MsgType int64 `protobuf:"varint,6,opt,name=msgType,proto3" json:"msgType,omitempty"` //是否区分类型
- Read int64 `protobuf:"varint,7,opt,name=read,proto3" json:"read,omitempty"` // 是否区分已读未读 -1 不区分已读未读 0 未读 1 已读
- }
- 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
- }
- func (x *FindUserMsgReq) GetMsgType() int64 {
- if x != nil {
- return x.MsgType
- }
- return 0
- }
- func (x *FindUserMsgReq) GetRead() int64 {
- if x != nil {
- return x.Read
- }
- 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 ""
- }
- type GetLastMessageReq 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 *GetLastMessageReq) Reset() {
- *x = GetLastMessageReq{}
- if protoimpl.UnsafeEnabled {
- mi := &file_message_proto_msgTypes[11]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *GetLastMessageReq) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*GetLastMessageReq) ProtoMessage() {}
- func (x *GetLastMessageReq) ProtoReflect() protoreflect.Message {
- mi := &file_message_proto_msgTypes[11]
- 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 GetLastMessageReq.ProtoReflect.Descriptor instead.
- func (*GetLastMessageReq) Descriptor() ([]byte, []int) {
- return file_message_proto_rawDescGZIP(), []int{11}
- }
- func (x *GetLastMessageReq) GetUserId() string {
- if x != nil {
- return x.UserId
- }
- return ""
- }
- func (x *GetLastMessageReq) GetMsgType() int64 {
- if x != nil {
- return x.MsgType
- }
- return 0
- }
- func (x *GetLastMessageReq) GetAppid() string {
- if x != nil {
- return x.Appid
- }
- return ""
- }
- type GetLastMessageRes 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,opt,name=data,proto3" json:"data,omitempty"` //
- }
- func (x *GetLastMessageRes) Reset() {
- *x = GetLastMessageRes{}
- if protoimpl.UnsafeEnabled {
- mi := &file_message_proto_msgTypes[12]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *GetLastMessageRes) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*GetLastMessageRes) ProtoMessage() {}
- func (x *GetLastMessageRes) ProtoReflect() protoreflect.Message {
- mi := &file_message_proto_msgTypes[12]
- 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 GetLastMessageRes.ProtoReflect.Descriptor instead.
- func (*GetLastMessageRes) Descriptor() ([]byte, []int) {
- return file_message_proto_rawDescGZIP(), []int{12}
- }
- func (x *GetLastMessageRes) GetCode() int64 {
- if x != nil {
- return x.Code
- }
- return 0
- }
- func (x *GetLastMessageRes) GetMessage() string {
- if x != nil {
- return x.Message
- }
- return ""
- }
- func (x *GetLastMessageRes) GetData() *Messages {
- if x != nil {
- return x.Data
- }
- return nil
- }
- 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, 0xc6, 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,
- 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28,
- 0x03, 0x52, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x65,
- 0x61, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x72, 0x65, 0x61, 0x64, 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, 0x22, 0x5b, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x73, 0x74, 0x4d, 0x65, 0x73,
- 0x73, 0x61, 0x67, 0x65, 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, 0x22,
- 0x68, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
- 0x65, 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, 0x01, 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, 0x32, 0xe6, 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, 0x12, 0x48, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x4c,
- 0x61, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1a, 0x2e, 0x6d, 0x65, 0x73,
- 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73,
- 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x1a, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
- 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52,
- 0x65, 0x73, 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, 13)
- 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
- (*GetLastMessageReq)(nil), // 11: message.GetLastMessageReq
- (*GetLastMessageRes)(nil), // 12: message.GetLastMessageRes
- }
- var file_message_proto_depIdxs = []int32{
- 8, // 0: message.FindUserMsgRes.data:type_name -> message.Messages
- 8, // 1: message.GetLastMessageRes.data:type_name -> message.Messages
- 1, // 2: message.Message.ChangeReadStatus:input_type -> message.ChangeReadStatusRequest
- 0, // 3: message.Message.SendUserMsg:input_type -> message.SendMsgRequest
- 2, // 4: message.Message.DeleteSingleMessage:input_type -> message.DeleteSingleMessageRequest
- 3, // 5: message.Message.DeleteMultipleMessage:input_type -> message.DeleteMultipleMessageRequest
- 4, // 6: message.Message.GetUnreadCount:input_type -> message.GetUnreadCountRequest
- 7, // 7: message.Message.FindUserMsg:input_type -> message.FindUserMsgReq
- 10, // 8: message.Message.GetClassUnreadCount:input_type -> message.GetClassUnreadCountReq
- 11, // 9: message.Message.GetLastMessage:input_type -> message.GetLastMessageReq
- 5, // 10: message.Message.ChangeReadStatus:output_type -> message.Response
- 5, // 11: message.Message.SendUserMsg:output_type -> message.Response
- 5, // 12: message.Message.DeleteSingleMessage:output_type -> message.Response
- 5, // 13: message.Message.DeleteMultipleMessage:output_type -> message.Response
- 6, // 14: message.Message.GetUnreadCount:output_type -> message.GetUnreadCountResponse
- 9, // 15: message.Message.FindUserMsg:output_type -> message.FindUserMsgRes
- 6, // 16: message.Message.GetClassUnreadCount:output_type -> message.GetUnreadCountResponse
- 12, // 17: message.Message.GetLastMessage:output_type -> message.GetLastMessageRes
- 10, // [10:18] is the sub-list for method output_type
- 2, // [2:10] is the sub-list for method input_type
- 2, // [2:2] is the sub-list for extension type_name
- 2, // [2:2] is the sub-list for extension extendee
- 0, // [0:2] 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
- }
- }
- file_message_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*GetLastMessageReq); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_message_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*GetLastMessageRes); 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: 13,
- 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)
- // 获取指定用户指定分类的最新一条未读消息
- GetLastMessage(ctx context.Context, in *GetLastMessageReq, opts ...grpc.CallOption) (*GetLastMessageRes, 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
- }
- func (c *messageClient) GetLastMessage(ctx context.Context, in *GetLastMessageReq, opts ...grpc.CallOption) (*GetLastMessageRes, error) {
- out := new(GetLastMessageRes)
- err := c.cc.Invoke(ctx, "/message.Message/GetLastMessage", 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)
- // 获取指定用户指定分类的最新一条未读消息
- GetLastMessage(context.Context, *GetLastMessageReq) (*GetLastMessageRes, 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 (*UnimplementedMessageServer) GetLastMessage(context.Context, *GetLastMessageReq) (*GetLastMessageRes, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetLastMessage 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)
- }
- func _Message_GetLastMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(GetLastMessageReq)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(MessageServer).GetLastMessage(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/message.Message/GetLastMessage",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(MessageServer).GetLastMessage(ctx, req.(*GetLastMessageReq))
- }
- 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,
- },
- {
- MethodName: "GetLastMessage",
- Handler: _Message_GetLastMessage_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "message.proto",
- }
|