message

package
v0.0.0-...-e4e76df Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_idl_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) 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() int64

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 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"`
	Id         int64  `protobuf:"varint,5,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

=====================================消息发送===================================

func (*MessageActionRequest) Descriptor deprecated

func (*MessageActionRequest) Descriptor() ([]byte, []int)

Deprecated: Use MessageActionRequest.ProtoReflect.Descriptor instead.

func (*MessageActionRequest) FastRead

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

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

func (x *MessageActionRequest) GetId() int64

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

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

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"` // 上次最新消息时间
	Id         int64  `protobuf:"varint,4,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*MessageChatRequest) Descriptor deprecated

func (*MessageChatRequest) Descriptor() ([]byte, []int)

Deprecated: Use MessageChatRequest.ProtoReflect.Descriptor instead.

func (*MessageChatRequest) FastRead

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

func (*MessageChatRequest) FastWrite

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

func (*MessageChatRequest) GetId

func (x *MessageChatRequest) GetId() int64

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

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

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

Directories

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

Jump to

Keyboard shortcuts

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