message

package
v0.0.0-...-dfc68d5 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_idl_message_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BaseResp

type BaseResp struct {
	StatusCode    int32  `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"`         //状态码
	StatusMessage string `protobuf:"bytes,2,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"` //状态描述
	ServiceTime   int64  `protobuf:"varint,3,opt,name=service_time,json=serviceTime,proto3" json:"service_time,omitempty"`      //服务时间
	// contains filtered or unexported fields
}

func (*BaseResp) Descriptor deprecated

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

Deprecated: Use BaseResp.ProtoReflect.Descriptor instead.

func (*BaseResp) FastRead

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

func (*BaseResp) FastWrite

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

func (*BaseResp) GetServiceTime

func (x *BaseResp) GetServiceTime() int64

func (*BaseResp) GetStatusCode

func (x *BaseResp) GetStatusCode() int32

func (*BaseResp) GetStatusMessage

func (x *BaseResp) GetStatusMessage() string

func (*BaseResp) ProtoMessage

func (*BaseResp) ProtoMessage()

func (*BaseResp) ProtoReflect

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

func (*BaseResp) Reset

func (x *BaseResp) Reset()

func (*BaseResp) Size

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

func (*BaseResp) String

func (x *BaseResp) String() string

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"`                          // 消息内容
	// 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) 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 {
	BaseResp *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,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) GetBaseResp

func (x *MessageActionResponse) GetBaseResp() *BaseResp

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) 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) 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 {
	BaseResp    *BaseResp  `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"`
	MessageList []*Message `protobuf:"bytes,2,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) GetBaseResp

func (x *MessageChatResponse) GetBaseResp() *BaseResp

func (*MessageChatResponse) GetMessageList

func (x *MessageChatResponse) GetMessageList() []*Message

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 {
	MessageAction(ctx context.Context, req *MessageActionRequest) (res *MessageActionResponse, err error)
	MessageChat(ctx context.Context, req *MessageChatRequest) (res *MessageChatResponse, err error)
}

type User

type User struct {
	Id              int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`                                                 //用户id
	Name            string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`                                              //用户名称
	FollowCount     int64  `protobuf:"varint,3,opt,name=follow_count,json=followCount,proto3" json:"follow_count,omitempty"`            //关注总数
	FollowerCount   int64  `protobuf:"varint,4,opt,name=follower_count,json=followerCount,proto3" json:"follower_count,omitempty"`      //粉丝总数
	IsFollow        bool   `protobuf:"varint,5,opt,name=is_follow,json=isFollow,proto3" json:"is_follow,omitempty"`                     //true-已关注,false-未关注
	Avatar          string `protobuf:"bytes,6,opt,name=avatar,proto3" json:"avatar,omitempty"`                                          // 用户头像
	BackgroundImage string `protobuf:"bytes,7,opt,name=background_image,json=backgroundImage,proto3" json:"background_image,omitempty"` // 用户个人页顶部大图
	Signature       string `protobuf:"bytes,8,opt,name=signature,proto3" json:"signature,omitempty"`                                    // 个人简介
	TotalFavorited  int64  `protobuf:"varint,9,opt,name=total_favorited,json=totalFavorited,proto3" json:"total_favorited,omitempty"`   // 获赞数量
	WorkCount       int64  `protobuf:"varint,10,opt,name=work_count,json=workCount,proto3" json:"work_count,omitempty"`                 // 作品数量
	FavoriteCount   int64  `protobuf:"varint,11,opt,name=favorite_count,json=favoriteCount,proto3" json:"favorite_count,omitempty"`     // 点赞数量
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) FastRead

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

func (*User) FastWrite

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

func (*User) GetAvatar

func (x *User) GetAvatar() string

func (*User) GetBackgroundImage

func (x *User) GetBackgroundImage() string

func (*User) GetFavoriteCount

func (x *User) GetFavoriteCount() int64

func (*User) GetFollowCount

func (x *User) GetFollowCount() int64

func (*User) GetFollowerCount

func (x *User) GetFollowerCount() int64

func (*User) GetId

func (x *User) GetId() int64

func (*User) GetIsFollow

func (x *User) GetIsFollow() bool

func (*User) GetName

func (x *User) GetName() string

func (*User) GetSignature

func (x *User) GetSignature() string

func (*User) GetTotalFavorited

func (x *User) GetTotalFavorited() int64

func (*User) GetWorkCount

func (x *User) GetWorkCount() int64

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) Size

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

func (*User) String

func (x *User) String() string

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