message

package
v0.0.0-...-3b276ab Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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) FastRead

func (x *ActionRequest) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

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) FastRead

func (x *ActionResponse) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

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) FastRead

func (x *ChatRequest) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

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) FastRead

func (x *ChatResponse) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

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) Descriptor() ([]byte, []int)

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) FastRead

func (x *Message) FastRead(buf []byte, _type int8, number int32) (offset int, err error)

func (*Message) FastWrite

func (x *Message) FastWrite(buf []byte) (offset int)

func (*Message) GetContent

func (x *Message) GetContent() string

func (*Message) GetCreateTime

func (x *Message) GetCreateTime() uint64

func (*Message) GetFromUserId

func (x *Message) GetFromUserId() int64

func (*Message) GetId

func (x *Message) GetId() int64

func (*Message) GetToUserId

func (x *Message) GetToUserId() int64

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

func (x *Message) ProtoReflect() protoreflect.Message

func (*Message) Reset

func (x *Message) Reset()

func (*Message) Size

func (x *Message) Size() (n int)

func (*Message) String

func (x *Message) String() string

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)
}

Directories

Path Synopsis
Code generated by Kitex v0.4.4.
Code generated by Kitex v0.4.4.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL