Documentation ¶
Index ¶
- Variables
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *Message) FastWrite(buf []byte) (offset int)
- func (x *Message) GetContent() string
- func (x *Message) GetCreateTime() int64
- func (x *Message) GetFromUserId() int64
- func (x *Message) GetId() int64
- func (x *Message) GetToUserId() int64
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) Size() (n int)
- func (x *Message) String() string
- type MessageActionRequest
- func (*MessageActionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MessageActionRequest) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *MessageActionRequest) FastWrite(buf []byte) (offset int)
- func (x *MessageActionRequest) GetActionType() int32
- func (x *MessageActionRequest) GetContent() string
- func (x *MessageActionRequest) GetToUserId() int64
- func (x *MessageActionRequest) GetToken() string
- func (*MessageActionRequest) ProtoMessage()
- func (x *MessageActionRequest) ProtoReflect() protoreflect.Message
- func (x *MessageActionRequest) Reset()
- func (x *MessageActionRequest) Size() (n int)
- func (x *MessageActionRequest) String() string
- type MessageActionResponse
- func (*MessageActionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MessageActionResponse) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *MessageActionResponse) FastWrite(buf []byte) (offset int)
- func (x *MessageActionResponse) GetStatusCode() int32
- func (x *MessageActionResponse) GetStatusMsg() string
- func (*MessageActionResponse) ProtoMessage()
- func (x *MessageActionResponse) ProtoReflect() protoreflect.Message
- func (x *MessageActionResponse) Reset()
- func (x *MessageActionResponse) Size() (n int)
- func (x *MessageActionResponse) String() string
- type MessageChatRequest
- func (*MessageChatRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MessageChatRequest) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *MessageChatRequest) FastWrite(buf []byte) (offset int)
- func (x *MessageChatRequest) GetPreMsgTime() int64
- func (x *MessageChatRequest) GetToUserId() int64
- func (x *MessageChatRequest) GetToken() string
- func (*MessageChatRequest) ProtoMessage()
- func (x *MessageChatRequest) ProtoReflect() protoreflect.Message
- func (x *MessageChatRequest) Reset()
- func (x *MessageChatRequest) Size() (n int)
- func (x *MessageChatRequest) String() string
- type MessageChatResponse
- func (*MessageChatResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MessageChatResponse) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *MessageChatResponse) FastWrite(buf []byte) (offset int)
- func (x *MessageChatResponse) GetMessageList() []*Message
- func (x *MessageChatResponse) GetStatusCode() int32
- func (x *MessageChatResponse) GetStatusMsg() string
- func (*MessageChatResponse) ProtoMessage()
- func (x *MessageChatResponse) ProtoReflect() protoreflect.Message
- func (x *MessageChatResponse) Reset()
- func (x *MessageChatResponse) Size() (n int)
- func (x *MessageChatResponse) String() string
- type MessageService
Constants ¶
This section is empty.
Variables ¶
View Source
var File_message_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 消息id ToUserId int64 `protobuf:"varint,2,opt,name=to_user_id,json=toUserId,proto3" json:"to_user_id,omitempty"` // 该消息接收者的id FromUserId int64 `protobuf:"varint,3,opt,name=from_user_id,json=fromUserId,proto3" json:"from_user_id,omitempty"` // 该消息发送者的id Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"` // 消息内容 CreateTime int64 `protobuf:"varint,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // 消息创建时间 // contains filtered or unexported fields }
====================================聊天记录===================================
func (*Message) Descriptor
deprecated
func (*Message) GetContent ¶
func (*Message) GetCreateTime ¶
func (*Message) GetFromUserId ¶
func (*Message) GetToUserId ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
type MessageActionRequest ¶
type MessageActionRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` //用户鉴权token ToUserId int64 `protobuf:"varint,2,opt,name=to_user_id,json=toUserId,proto3" json:"to_user_id,omitempty"` //对方用户id ActionType int32 `protobuf:"varint,3,opt,name=action_type,json=actionType,proto3" json:"action_type,omitempty"` //1-发送消息 Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
=====================================消息发送===================================
func (*MessageActionRequest) Descriptor
deprecated
func (*MessageActionRequest) Descriptor() ([]byte, []int)
Deprecated: Use MessageActionRequest.ProtoReflect.Descriptor instead.
func (*MessageActionRequest) FastWrite ¶
func (x *MessageActionRequest) FastWrite(buf []byte) (offset int)
func (*MessageActionRequest) GetActionType ¶
func (x *MessageActionRequest) GetActionType() int32
func (*MessageActionRequest) GetContent ¶
func (x *MessageActionRequest) GetContent() string
func (*MessageActionRequest) GetToUserId ¶
func (x *MessageActionRequest) GetToUserId() int64
func (*MessageActionRequest) GetToken ¶
func (x *MessageActionRequest) GetToken() string
func (*MessageActionRequest) ProtoMessage ¶
func (*MessageActionRequest) ProtoMessage()
func (*MessageActionRequest) ProtoReflect ¶
func (x *MessageActionRequest) ProtoReflect() protoreflect.Message
func (*MessageActionRequest) Reset ¶
func (x *MessageActionRequest) Reset()
func (*MessageActionRequest) Size ¶
func (x *MessageActionRequest) Size() (n int)
func (*MessageActionRequest) String ¶
func (x *MessageActionRequest) String() string
type MessageActionResponse ¶
type MessageActionResponse struct { StatusCode int32 `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` // 状态码,0成功,其他值失败 StatusMsg string `protobuf:"bytes,2,opt,name=status_msg,json=statusMsg,proto3" json:"status_msg,omitempty"` // 返回状态描述 // contains filtered or unexported fields }
func (*MessageActionResponse) Descriptor
deprecated
func (*MessageActionResponse) Descriptor() ([]byte, []int)
Deprecated: Use MessageActionResponse.ProtoReflect.Descriptor instead.
func (*MessageActionResponse) FastWrite ¶
func (x *MessageActionResponse) FastWrite(buf []byte) (offset int)
func (*MessageActionResponse) GetStatusCode ¶
func (x *MessageActionResponse) GetStatusCode() int32
func (*MessageActionResponse) GetStatusMsg ¶
func (x *MessageActionResponse) GetStatusMsg() string
func (*MessageActionResponse) ProtoMessage ¶
func (*MessageActionResponse) ProtoMessage()
func (*MessageActionResponse) ProtoReflect ¶
func (x *MessageActionResponse) ProtoReflect() protoreflect.Message
func (*MessageActionResponse) Reset ¶
func (x *MessageActionResponse) Reset()
func (*MessageActionResponse) Size ¶
func (x *MessageActionResponse) Size() (n int)
func (*MessageActionResponse) String ¶
func (x *MessageActionResponse) String() string
type MessageChatRequest ¶
type MessageChatRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // 用户鉴权token ToUserId int64 `protobuf:"varint,2,opt,name=to_user_id,json=toUserId,proto3" json:"to_user_id,omitempty"` // 对方用户id PreMsgTime int64 `protobuf:"varint,3,opt,name=pre_msg_time,json=preMsgTime,proto3" json:"pre_msg_time,omitempty"` // 上次最新消息时间 // contains filtered or unexported fields }
func (*MessageChatRequest) Descriptor
deprecated
func (*MessageChatRequest) Descriptor() ([]byte, []int)
Deprecated: Use MessageChatRequest.ProtoReflect.Descriptor instead.
func (*MessageChatRequest) FastWrite ¶
func (x *MessageChatRequest) FastWrite(buf []byte) (offset int)
func (*MessageChatRequest) GetPreMsgTime ¶
func (x *MessageChatRequest) GetPreMsgTime() int64
func (*MessageChatRequest) GetToUserId ¶
func (x *MessageChatRequest) GetToUserId() int64
func (*MessageChatRequest) GetToken ¶
func (x *MessageChatRequest) GetToken() string
func (*MessageChatRequest) ProtoMessage ¶
func (*MessageChatRequest) ProtoMessage()
func (*MessageChatRequest) ProtoReflect ¶
func (x *MessageChatRequest) ProtoReflect() protoreflect.Message
func (*MessageChatRequest) Reset ¶
func (x *MessageChatRequest) Reset()
func (*MessageChatRequest) Size ¶
func (x *MessageChatRequest) Size() (n int)
func (*MessageChatRequest) String ¶
func (x *MessageChatRequest) String() string
type MessageChatResponse ¶
type MessageChatResponse struct { StatusCode int32 `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` // 状态码,0成功,其他值失败 StatusMsg string `protobuf:"bytes,2,opt,name=status_msg,json=statusMsg,proto3" json:"status_msg,omitempty"` // 返回状态描述 MessageList []*Message `protobuf:"bytes,3,rep,name=message_list,json=messageList,proto3" json:"message_list,omitempty"` // 消息列表 // contains filtered or unexported fields }
func (*MessageChatResponse) Descriptor
deprecated
func (*MessageChatResponse) Descriptor() ([]byte, []int)
Deprecated: Use MessageChatResponse.ProtoReflect.Descriptor instead.
func (*MessageChatResponse) FastWrite ¶
func (x *MessageChatResponse) FastWrite(buf []byte) (offset int)
func (*MessageChatResponse) GetMessageList ¶
func (x *MessageChatResponse) GetMessageList() []*Message
func (*MessageChatResponse) GetStatusCode ¶
func (x *MessageChatResponse) GetStatusCode() int32
func (*MessageChatResponse) GetStatusMsg ¶
func (x *MessageChatResponse) GetStatusMsg() string
func (*MessageChatResponse) ProtoMessage ¶
func (*MessageChatResponse) ProtoMessage()
func (*MessageChatResponse) ProtoReflect ¶
func (x *MessageChatResponse) ProtoReflect() protoreflect.Message
func (*MessageChatResponse) Reset ¶
func (x *MessageChatResponse) Reset()
func (*MessageChatResponse) Size ¶
func (x *MessageChatResponse) Size() (n int)
func (*MessageChatResponse) String ¶
func (x *MessageChatResponse) String() string
type MessageService ¶
type MessageService interface { MessageChat(ctx context.Context, req *MessageChatRequest) (res *MessageChatResponse, err error) MessageAction(ctx context.Context, req *MessageActionRequest) (res *MessageActionResponse, err error) }
Click to show internal directories.
Click to hide internal directories.