chat

package
v0.0.0-...-48d44df Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type FriendUser

type FriendUser struct {
	Id          *int64  `protobuf:"varint,1,req,name=id" json:"id,required" form:"id,required" query:"id,required"`        // 用户id
	Name        *string `protobuf:"bytes,2,req,name=name" json:"name,required" form:"name,required" query:"name,required"` // 用户名称
	FollowCount *int64  ``                                                                                                 // 关注总数
	/* 129-byte string literal not displayed */
	FollowerCount *int64 `` // 粉丝总数
	/* 139-byte string literal not displayed */
	IsFollow *bool `` // true-已关注,false-未关注
	/* 131-byte string literal not displayed */
	Avatar  *string `protobuf:"bytes,6,req,name=avatar" json:"avatar,required" form:"avatar,required" query:"avatar,required"`      // 用户头像Url
	Message *string `protobuf:"bytes,7,opt,name=message" json:"message,omitempty" form:"message" query:"message"`                   // 和该好友的最新聊天消息
	MsgType *int64  `protobuf:"varint,8,req,name=msgType" json:"msgType,required" form:"msgType,required" query:"msgType,required"` // message消息的类型,0 => 当前请求用户接收的消息, 1 => 当前请求用户发送的消息
	// contains filtered or unexported fields
}

func (*FriendUser) Descriptor deprecated

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

Deprecated: Use FriendUser.ProtoReflect.Descriptor instead.

func (*FriendUser) GetAvatar

func (x *FriendUser) GetAvatar() string

func (*FriendUser) GetFollowCount

func (x *FriendUser) GetFollowCount() int64

func (*FriendUser) GetFollowerCount

func (x *FriendUser) GetFollowerCount() int64

func (*FriendUser) GetId

func (x *FriendUser) GetId() int64

func (*FriendUser) GetIsFollow

func (x *FriendUser) GetIsFollow() bool

func (*FriendUser) GetMessage

func (x *FriendUser) GetMessage() string

func (*FriendUser) GetMsgType

func (x *FriendUser) GetMsgType() int64

func (*FriendUser) GetName

func (x *FriendUser) GetName() string

func (*FriendUser) ProtoMessage

func (*FriendUser) ProtoMessage()

func (*FriendUser) ProtoReflect

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

func (*FriendUser) Reset

func (x *FriendUser) Reset()

func (*FriendUser) String

func (x *FriendUser) String() string

type Message

type Message struct {
	Id       *int64 `protobuf:"varint,1,req,name=id" json:"id,required" form:"id,required" query:"id,required"` // 消息id
	ToUserId *int64 ``                                                                                          // 该消息接收者的id
	/* 135-byte string literal not displayed */
	FromUserId *int64 `` // 该消息发送者的id
	/* 145-byte string literal not displayed */
	Content    *string `protobuf:"bytes,4,req,name=content" json:"content,required" form:"content,required" query:"content,required"`                 // 消息内容
	CreateTime *int64  `protobuf:"varint,5,opt,name=create_time,json=createTime" json:"create_time,omitempty" form:"create_time" query:"create_time"` // 消息创建时间
	// contains filtered or unexported fields
}

func (*Message) Descriptor deprecated

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

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

func (x *Message) String() string

type MessageChatReq

type MessageChatReq struct {
	Token    *string `protobuf:"bytes,1,req,name=token" json:"token,required" form:"token,required" query:"token,required"` // 用户鉴权token
	ToUserId *int64  ``                                                                                                     // 对方用户id
	/* 135-byte string literal not displayed */
	PreMsgTime *int64 `` //上次最新消息的时间(新增字段-apk更新中)
	/* 145-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*MessageChatReq) Descriptor deprecated

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

Deprecated: Use MessageChatReq.ProtoReflect.Descriptor instead.

func (*MessageChatReq) GetPreMsgTime

func (x *MessageChatReq) GetPreMsgTime() int64

func (*MessageChatReq) GetToUserId

func (x *MessageChatReq) GetToUserId() int64

func (*MessageChatReq) GetToken

func (x *MessageChatReq) GetToken() string

func (*MessageChatReq) ProtoMessage

func (*MessageChatReq) ProtoMessage()

func (*MessageChatReq) ProtoReflect

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

func (*MessageChatReq) Reset

func (x *MessageChatReq) Reset()

func (*MessageChatReq) String

func (x *MessageChatReq) String() string

type MessageChatResp

type MessageChatResp struct {
	StatusCode *int32 `` // 状态码,0-成功,其他值-失败
	/* 141-byte string literal not displayed */
	StatusMsg   *string    `protobuf:"bytes,2,opt,name=status_msg,json=statusMsg" json:"status_msg,omitempty" form:"status_msg" query:"status_msg"` // 返回状态描述
	MessageList []*Message `protobuf:"bytes,3,rep,name=message_list,json=messageList" json:"message_list" form:"message_list" query:"message_list"` // 消息列表
	// contains filtered or unexported fields
}

func (*MessageChatResp) Descriptor deprecated

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

Deprecated: Use MessageChatResp.ProtoReflect.Descriptor instead.

func (*MessageChatResp) GetMessageList

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

func (*MessageChatResp) GetStatusCode

func (x *MessageChatResp) GetStatusCode() int32

func (*MessageChatResp) GetStatusMsg

func (x *MessageChatResp) GetStatusMsg() string

func (*MessageChatResp) ProtoMessage

func (*MessageChatResp) ProtoMessage()

func (*MessageChatResp) ProtoReflect

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

func (*MessageChatResp) Reset

func (x *MessageChatResp) Reset()

func (*MessageChatResp) String

func (x *MessageChatResp) String() string

type RelationActionReq

type RelationActionReq struct {
	Token    *string `protobuf:"bytes,1,req,name=token" json:"token,required" form:"token,required" query:"token,required"` // 用户鉴权token
	ToUserId *int64  ``                                                                                                     // 对方用户id
	/* 135-byte string literal not displayed */
	ActionType *int32 `` // 1-发送消息
	/* 141-byte string literal not displayed */
	Content *string `protobuf:"bytes,4,req,name=content" json:"content,required" form:"content,required" query:"content,required"` // 消息内容
	// contains filtered or unexported fields
}

func (*RelationActionReq) Descriptor deprecated

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

Deprecated: Use RelationActionReq.ProtoReflect.Descriptor instead.

func (*RelationActionReq) GetActionType

func (x *RelationActionReq) GetActionType() int32

func (*RelationActionReq) GetContent

func (x *RelationActionReq) GetContent() string

func (*RelationActionReq) GetToUserId

func (x *RelationActionReq) GetToUserId() int64

func (*RelationActionReq) GetToken

func (x *RelationActionReq) GetToken() string

func (*RelationActionReq) ProtoMessage

func (*RelationActionReq) ProtoMessage()

func (*RelationActionReq) ProtoReflect

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

func (*RelationActionReq) Reset

func (x *RelationActionReq) Reset()

func (*RelationActionReq) String

func (x *RelationActionReq) String() string

type RelationActionResp

type RelationActionResp struct {
	StatusCode *int32 `` // 状态码,0-成功,其他值-失败
	/* 141-byte string literal not displayed */
	StatusMsg *string `protobuf:"bytes,2,opt,name=status_msg,json=statusMsg" json:"status_msg,omitempty" form:"status_msg" query:"status_msg"` // 返回状态描述
	// contains filtered or unexported fields
}

func (*RelationActionResp) Descriptor deprecated

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

Deprecated: Use RelationActionResp.ProtoReflect.Descriptor instead.

func (*RelationActionResp) GetStatusCode

func (x *RelationActionResp) GetStatusCode() int32

func (*RelationActionResp) GetStatusMsg

func (x *RelationActionResp) GetStatusMsg() string

func (*RelationActionResp) ProtoMessage

func (*RelationActionResp) ProtoMessage()

func (*RelationActionResp) ProtoReflect

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

func (*RelationActionResp) Reset

func (x *RelationActionResp) Reset()

func (*RelationActionResp) String

func (x *RelationActionResp) String() string

type RelationFriendListReq

type RelationFriendListReq struct {
	UserId *int64  `protobuf:"varint,1,req,name=user_id,json=userId" json:"user_id,required" form:"user_id,required" query:"user_id,required"` // 用户id
	Token  *string `protobuf:"bytes,2,req,name=token" json:"token,required" form:"token,required" query:"token,required"`                      // 用户鉴权token
	// contains filtered or unexported fields
}

func (*RelationFriendListReq) Descriptor deprecated

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

Deprecated: Use RelationFriendListReq.ProtoReflect.Descriptor instead.

func (*RelationFriendListReq) GetToken

func (x *RelationFriendListReq) GetToken() string

func (*RelationFriendListReq) GetUserId

func (x *RelationFriendListReq) GetUserId() int64

func (*RelationFriendListReq) ProtoMessage

func (*RelationFriendListReq) ProtoMessage()

func (*RelationFriendListReq) ProtoReflect

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

func (*RelationFriendListReq) Reset

func (x *RelationFriendListReq) Reset()

func (*RelationFriendListReq) String

func (x *RelationFriendListReq) String() string

type RelationFriendListResp

type RelationFriendListResp struct {
	StatusCode *int32 `` // 状态码,0-成功,其他值-失败
	/* 141-byte string literal not displayed */
	StatusMsg *string       `protobuf:"bytes,2,opt,name=status_msg,json=statusMsg" json:"status_msg,omitempty" form:"status_msg" query:"status_msg"` // 返回状态描述
	UserList  []*FriendUser `protobuf:"bytes,3,rep,name=user_list,json=userList" json:"user_list" form:"user_list" query:"user_list"`                // 用户列表
	// contains filtered or unexported fields
}

func (*RelationFriendListResp) Descriptor deprecated

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

Deprecated: Use RelationFriendListResp.ProtoReflect.Descriptor instead.

func (*RelationFriendListResp) GetStatusCode

func (x *RelationFriendListResp) GetStatusCode() int32

func (*RelationFriendListResp) GetStatusMsg

func (x *RelationFriendListResp) GetStatusMsg() string

func (*RelationFriendListResp) GetUserList

func (x *RelationFriendListResp) GetUserList() []*FriendUser

func (*RelationFriendListResp) ProtoMessage

func (*RelationFriendListResp) ProtoMessage()

func (*RelationFriendListResp) ProtoReflect

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

func (*RelationFriendListResp) Reset

func (x *RelationFriendListResp) Reset()

func (*RelationFriendListResp) String

func (x *RelationFriendListResp) String() string

Jump to

Keyboard shortcuts

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