Documentation
¶
Index ¶
- Variables
- type ActionRequest
- func (*ActionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ActionRequest) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *ActionRequest) FastWrite(buf []byte) (offset int)
- func (x *ActionRequest) GetActionType() int32
- func (x *ActionRequest) GetContent() string
- func (x *ActionRequest) GetId() int64
- func (x *ActionRequest) GetToUserId() int64
- func (*ActionRequest) ProtoMessage()
- func (x *ActionRequest) ProtoReflect() protoreflect.Message
- func (x *ActionRequest) Reset()
- func (x *ActionRequest) Size() (n int)
- func (x *ActionRequest) String() string
- type ActionResponse
- func (*ActionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ActionResponse) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *ActionResponse) FastWrite(buf []byte) (offset int)
- func (x *ActionResponse) GetStatusCode() int32
- func (x *ActionResponse) GetStatusMsg() string
- func (*ActionResponse) ProtoMessage()
- func (x *ActionResponse) ProtoReflect() protoreflect.Message
- func (x *ActionResponse) Reset()
- func (x *ActionResponse) Size() (n int)
- func (x *ActionResponse) String() string
- type ChatRequest
- func (*ChatRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ChatRequest) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *ChatRequest) FastWrite(buf []byte) (offset int)
- func (x *ChatRequest) GetId() int64
- func (x *ChatRequest) GetPreMsgTime() int64
- func (x *ChatRequest) GetToUserId() int64
- func (*ChatRequest) ProtoMessage()
- func (x *ChatRequest) ProtoReflect() protoreflect.Message
- func (x *ChatRequest) Reset()
- func (x *ChatRequest) Size() (n int)
- func (x *ChatRequest) String() string
- type ChatResponse
- func (*ChatResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ChatResponse) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *ChatResponse) FastWrite(buf []byte) (offset int)
- func (x *ChatResponse) GetMessageList() []*Message
- func (x *ChatResponse) GetStatusCode() int32
- func (x *ChatResponse) GetStatusMsg() string
- func (*ChatResponse) ProtoMessage()
- func (x *ChatResponse) ProtoReflect() protoreflect.Message
- func (x *ChatResponse) Reset()
- func (x *ChatResponse) Size() (n int)
- func (x *ChatResponse) String() string
- 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() uint64
- 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 MessageService
Constants ¶
This section is empty.
Variables ¶
View Source
var File_MiniTikTok_Proto_message_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ActionRequest ¶
type ActionRequest struct { // 执行操作的用户 id 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"` // 1-发送消息 ActionType int32 `protobuf:"varint,3,opt,name=action_type,json=actionType,proto3" json:"action_type,omitempty"` // 消息内容 Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func (*ActionRequest) Descriptor
deprecated
func (*ActionRequest) Descriptor() ([]byte, []int)
Deprecated: Use ActionRequest.ProtoReflect.Descriptor instead.
func (*ActionRequest) FastWrite ¶
func (x *ActionRequest) FastWrite(buf []byte) (offset int)
func (*ActionRequest) GetActionType ¶
func (x *ActionRequest) GetActionType() int32
func (*ActionRequest) GetContent ¶
func (x *ActionRequest) GetContent() string
func (*ActionRequest) GetId ¶
func (x *ActionRequest) GetId() int64
func (*ActionRequest) GetToUserId ¶
func (x *ActionRequest) GetToUserId() int64
func (*ActionRequest) ProtoMessage ¶
func (*ActionRequest) ProtoMessage()
func (*ActionRequest) ProtoReflect ¶
func (x *ActionRequest) ProtoReflect() protoreflect.Message
func (*ActionRequest) Reset ¶
func (x *ActionRequest) Reset()
func (*ActionRequest) Size ¶
func (x *ActionRequest) Size() (n int)
func (*ActionRequest) String ¶
func (x *ActionRequest) String() string
type ActionResponse ¶
type ActionResponse struct { // 0-成功,非0-失败 StatusCode int32 `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` // 状态描述 StatusMsg string `protobuf:"bytes,2,opt,name=status_msg,json=statusMsg,proto3" json:"status_msg,omitempty"` // contains filtered or unexported fields }
func (*ActionResponse) Descriptor
deprecated
func (*ActionResponse) Descriptor() ([]byte, []int)
Deprecated: Use ActionResponse.ProtoReflect.Descriptor instead.
func (*ActionResponse) FastWrite ¶
func (x *ActionResponse) FastWrite(buf []byte) (offset int)
func (*ActionResponse) GetStatusCode ¶
func (x *ActionResponse) GetStatusCode() int32
func (*ActionResponse) GetStatusMsg ¶
func (x *ActionResponse) GetStatusMsg() string
func (*ActionResponse) ProtoMessage ¶
func (*ActionResponse) ProtoMessage()
func (*ActionResponse) ProtoReflect ¶
func (x *ActionResponse) ProtoReflect() protoreflect.Message
func (*ActionResponse) Reset ¶
func (x *ActionResponse) Reset()
func (*ActionResponse) Size ¶
func (x *ActionResponse) Size() (n int)
func (*ActionResponse) String ¶
func (x *ActionResponse) String() string
type ChatRequest ¶
type ChatRequest struct { // 执行操作的用户 id 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"` //上次最新消息的时间 PreMsgTime int64 `protobuf:"varint,3,opt,name=pre_msg_time,json=preMsgTime,proto3" json:"pre_msg_time,omitempty"` // contains filtered or unexported fields }
func (*ChatRequest) Descriptor
deprecated
func (*ChatRequest) Descriptor() ([]byte, []int)
Deprecated: Use ChatRequest.ProtoReflect.Descriptor instead.
func (*ChatRequest) FastWrite ¶
func (x *ChatRequest) FastWrite(buf []byte) (offset int)
func (*ChatRequest) GetId ¶
func (x *ChatRequest) GetId() int64
func (*ChatRequest) GetPreMsgTime ¶
func (x *ChatRequest) GetPreMsgTime() int64
func (*ChatRequest) GetToUserId ¶
func (x *ChatRequest) GetToUserId() int64
func (*ChatRequest) ProtoMessage ¶
func (*ChatRequest) ProtoMessage()
func (*ChatRequest) ProtoReflect ¶
func (x *ChatRequest) ProtoReflect() protoreflect.Message
func (*ChatRequest) Reset ¶
func (x *ChatRequest) Reset()
func (*ChatRequest) Size ¶
func (x *ChatRequest) Size() (n int)
func (*ChatRequest) String ¶
func (x *ChatRequest) String() string
type ChatResponse ¶
type ChatResponse struct { // 0-成功,非0-失败 StatusCode int32 `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` // 状态描述 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 (*ChatResponse) Descriptor
deprecated
func (*ChatResponse) Descriptor() ([]byte, []int)
Deprecated: Use ChatResponse.ProtoReflect.Descriptor instead.
func (*ChatResponse) FastWrite ¶
func (x *ChatResponse) FastWrite(buf []byte) (offset int)
func (*ChatResponse) GetMessageList ¶
func (x *ChatResponse) GetMessageList() []*Message
func (*ChatResponse) GetStatusCode ¶
func (x *ChatResponse) GetStatusCode() int32
func (*ChatResponse) GetStatusMsg ¶
func (x *ChatResponse) GetStatusMsg() string
func (*ChatResponse) ProtoMessage ¶
func (*ChatResponse) ProtoMessage()
func (*ChatResponse) ProtoReflect ¶
func (x *ChatResponse) ProtoReflect() protoreflect.Message
func (*ChatResponse) Reset ¶
func (x *ChatResponse) Reset()
func (*ChatResponse) Size ¶
func (x *ChatResponse) Size() (n int)
func (*ChatResponse) String ¶
func (x *ChatResponse) String() string
type Message ¶
type Message struct { // 消息id 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"` // 消息内容 Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"` // 消息创建时间 CreateTime uint64 `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 MessageService ¶
type MessageService interface { Action(ctx context.Context, req *ActionRequest) (res *ActionResponse, err error) Chat(ctx context.Context, req *ChatRequest) (res *ChatResponse, err error) }
Click to show internal directories.
Click to hide internal directories.