Documentation ¶
Index ¶
- Variables
- func RegisterSysMsgServiceServer(s *grpc.Server, srv SysMsgServiceServer)
- type ListSysMsgReply
- func (*ListSysMsgReply) Descriptor() ([]byte, []int)
- func (m *ListSysMsgReply) Marshal() (dAtA []byte, err error)
- func (m *ListSysMsgReply) MarshalTo(dAtA []byte) (int, error)
- func (*ListSysMsgReply) ProtoMessage()
- func (m *ListSysMsgReply) Reset()
- func (m *ListSysMsgReply) Size() (n int)
- func (m *ListSysMsgReply) String() string
- func (m *ListSysMsgReply) Unmarshal(dAtA []byte) error
- func (m *ListSysMsgReply) XXX_DiscardUnknown()
- func (m *ListSysMsgReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ListSysMsgReply) XXX_Merge(src proto.Message)
- func (m *ListSysMsgReply) XXX_Size() int
- func (m *ListSysMsgReply) XXX_Unmarshal(b []byte) error
- type ListSysMsgReq
- func (*ListSysMsgReq) Descriptor() ([]byte, []int)
- func (m *ListSysMsgReq) Marshal() (dAtA []byte, err error)
- func (m *ListSysMsgReq) MarshalTo(dAtA []byte) (int, error)
- func (*ListSysMsgReq) ProtoMessage()
- func (m *ListSysMsgReq) Reset()
- func (m *ListSysMsgReq) Size() (n int)
- func (m *ListSysMsgReq) String() string
- func (m *ListSysMsgReq) Unmarshal(dAtA []byte) error
- func (m *ListSysMsgReq) XXX_DiscardUnknown()
- func (m *ListSysMsgReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ListSysMsgReq) XXX_Merge(src proto.Message)
- func (m *ListSysMsgReq) XXX_Size() int
- func (m *ListSysMsgReq) XXX_Unmarshal(b []byte) error
- type SysMsg
- func (*SysMsg) Descriptor() ([]byte, []int)
- func (m *SysMsg) Marshal() (dAtA []byte, err error)
- func (m *SysMsg) MarshalTo(dAtA []byte) (int, error)
- func (*SysMsg) ProtoMessage()
- func (m *SysMsg) Reset()
- func (m *SysMsg) Size() (n int)
- func (m *SysMsg) String() string
- func (m *SysMsg) Unmarshal(dAtA []byte) error
- func (m *SysMsg) XXX_DiscardUnknown()
- func (m *SysMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SysMsg) XXX_Merge(src proto.Message)
- func (m *SysMsg) XXX_Size() int
- func (m *SysMsg) XXX_Unmarshal(b []byte) error
- type SysMsgServiceClient
- type SysMsgServiceServer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowApi = fmt.Errorf("proto: integer overflow") )
Functions ¶
func RegisterSysMsgServiceServer ¶
func RegisterSysMsgServiceServer(s *grpc.Server, srv SysMsgServiceServer)
Types ¶
type ListSysMsgReply ¶
type ListSysMsgReply struct { // 用户mid Mid int64 `protobuf:"varint,1,opt,name=mid,proto3" json:"mid"` List []*SysMsg `protobuf:"bytes,2,rep,name=list" json:"list,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListSysMsgReply) Descriptor ¶
func (*ListSysMsgReply) Descriptor() ([]byte, []int)
func (*ListSysMsgReply) Marshal ¶
func (m *ListSysMsgReply) Marshal() (dAtA []byte, err error)
func (*ListSysMsgReply) ProtoMessage ¶
func (*ListSysMsgReply) ProtoMessage()
func (*ListSysMsgReply) Reset ¶
func (m *ListSysMsgReply) Reset()
func (*ListSysMsgReply) Size ¶
func (m *ListSysMsgReply) Size() (n int)
func (*ListSysMsgReply) String ¶
func (m *ListSysMsgReply) String() string
func (*ListSysMsgReply) Unmarshal ¶
func (m *ListSysMsgReply) Unmarshal(dAtA []byte) error
func (*ListSysMsgReply) XXX_DiscardUnknown ¶
func (m *ListSysMsgReply) XXX_DiscardUnknown()
func (*ListSysMsgReply) XXX_Marshal ¶
func (m *ListSysMsgReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListSysMsgReply) XXX_Merge ¶
func (dst *ListSysMsgReply) XXX_Merge(src proto.Message)
func (*ListSysMsgReply) XXX_Size ¶
func (m *ListSysMsgReply) XXX_Size() int
func (*ListSysMsgReply) XXX_Unmarshal ¶
func (m *ListSysMsgReply) XXX_Unmarshal(b []byte) error
type ListSysMsgReq ¶
type ListSysMsgReq struct { Ids []int64 `protobuf:"varint,1,rep,packed,name=ids" json:"ids" form:"ids" validate:"required"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListSysMsgReq) Descriptor ¶
func (*ListSysMsgReq) Descriptor() ([]byte, []int)
func (*ListSysMsgReq) Marshal ¶
func (m *ListSysMsgReq) Marshal() (dAtA []byte, err error)
func (*ListSysMsgReq) ProtoMessage ¶
func (*ListSysMsgReq) ProtoMessage()
func (*ListSysMsgReq) Reset ¶
func (m *ListSysMsgReq) Reset()
func (*ListSysMsgReq) Size ¶
func (m *ListSysMsgReq) Size() (n int)
func (*ListSysMsgReq) String ¶
func (m *ListSysMsgReq) String() string
func (*ListSysMsgReq) Unmarshal ¶
func (m *ListSysMsgReq) Unmarshal(dAtA []byte) error
func (*ListSysMsgReq) XXX_DiscardUnknown ¶
func (m *ListSysMsgReq) XXX_DiscardUnknown()
func (*ListSysMsgReq) XXX_Marshal ¶
func (m *ListSysMsgReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListSysMsgReq) XXX_Merge ¶
func (dst *ListSysMsgReq) XXX_Merge(src proto.Message)
func (*ListSysMsgReq) XXX_Size ¶
func (m *ListSysMsgReq) XXX_Size() int
func (*ListSysMsgReq) XXX_Unmarshal ¶
func (m *ListSysMsgReq) XXX_Unmarshal(b []byte) error
type SysMsg ¶
type SysMsg struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id"` Type int32 `protobuf:"varint,2,opt,name=type,proto3" json:"type" form:"type" validate:"required"` Sender int64 `protobuf:"varint,3,opt,name=sender,proto3" json:"sender" form:"sender" validate:"required"` Receiver int64 `protobuf:"varint,4,opt,name=receiver,proto3" json:"receiver" form:"receiver" validate:"required"` JumpUrl string `protobuf:"bytes,5,opt,name=jump_url,json=jumpUrl,proto3" json:"jump_url" form:"jump_url"` Text string `protobuf:"bytes,6,opt,name=text,proto3" json:"text" form:"text" validate:"required"` State int32 `protobuf:"varint,7,opt,name=state,proto3" json:"state" form:"state"` Ctime go_common_library_time.Time `protobuf:"varint,8,opt,name=ctime,proto3,casttype=go-common/library/time.Time" json:"ctime"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SysMsg) Descriptor ¶
func (*SysMsg) ProtoMessage ¶
func (*SysMsg) ProtoMessage()
func (*SysMsg) XXX_DiscardUnknown ¶
func (m *SysMsg) XXX_DiscardUnknown()
func (*SysMsg) XXX_Marshal ¶
func (*SysMsg) XXX_Unmarshal ¶
type SysMsgServiceClient ¶
type SysMsgServiceClient interface { // 获取系统通知 ListSysMsg(ctx context.Context, in *ListSysMsgReq, opts ...grpc.CallOption) (*ListSysMsgReply, error) // 创建消息 CreateSysMsg(ctx context.Context, in *SysMsg, opts ...grpc.CallOption) (*empty.Empty, error) // 更新,一般是状态更新 UpdateSysMsg(ctx context.Context, in *SysMsg, opts ...grpc.CallOption) (*empty.Empty, error) }
SysMsgServiceClient is the client API for SysMsgService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewSysMsgServiceClient ¶
func NewSysMsgServiceClient(cc *grpc.ClientConn) SysMsgServiceClient
type SysMsgServiceServer ¶
type SysMsgServiceServer interface { // 获取系统通知 ListSysMsg(context.Context, *ListSysMsgReq) (*ListSysMsgReply, error) // 创建消息 CreateSysMsg(context.Context, *SysMsg) (*empty.Empty, error) // 更新,一般是状态更新 UpdateSysMsg(context.Context, *SysMsg) (*empty.Empty, error) }
SysMsgServiceServer is the server API for SysMsgService service.
Click to show internal directories.
Click to hide internal directories.