relation

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_relation_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type FriendUser

type FriendUser 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"`     //点赞数量
	Message         string `protobuf:"bytes,12,opt,name=message,proto3" json:"message,omitempty"`                                       // 和该好友的最新聊天消息
	MsgType         int64  `protobuf:"varint,13,opt,name=msgType,proto3" json:"msgType,omitempty"`                                      // 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) FastRead

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

func (*FriendUser) FastWrite

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

func (*FriendUser) GetAvatar

func (x *FriendUser) GetAvatar() string

func (*FriendUser) GetBackgroundImage

func (x *FriendUser) GetBackgroundImage() string

func (*FriendUser) GetFavoriteCount

func (x *FriendUser) GetFavoriteCount() int64

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

func (x *FriendUser) GetSignature() string

func (*FriendUser) GetTotalFavorited

func (x *FriendUser) GetTotalFavorited() int64

func (*FriendUser) GetWorkCount

func (x *FriendUser) GetWorkCount() int64

func (*FriendUser) ProtoMessage

func (*FriendUser) ProtoMessage()

func (*FriendUser) ProtoReflect

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

func (*FriendUser) Reset

func (x *FriendUser) Reset()

func (*FriendUser) Size

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

func (*FriendUser) String

func (x *FriendUser) String() string

type RelationActionRequest

type RelationActionRequest 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-关注,2-取消关注
	Id         int64  `protobuf:"varint,4,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*RelationActionRequest) Descriptor deprecated

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

Deprecated: Use RelationActionRequest.ProtoReflect.Descriptor instead.

func (*RelationActionRequest) FastRead

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

func (*RelationActionRequest) FastWrite

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

func (*RelationActionRequest) GetActionType

func (x *RelationActionRequest) GetActionType() int32

func (*RelationActionRequest) GetId

func (x *RelationActionRequest) GetId() int64

func (*RelationActionRequest) GetToUserId

func (x *RelationActionRequest) GetToUserId() int64

func (*RelationActionRequest) GetToken

func (x *RelationActionRequest) GetToken() string

func (*RelationActionRequest) ProtoMessage

func (*RelationActionRequest) ProtoMessage()

func (*RelationActionRequest) ProtoReflect

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

func (*RelationActionRequest) Reset

func (x *RelationActionRequest) Reset()

func (*RelationActionRequest) Size

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

func (*RelationActionRequest) String

func (x *RelationActionRequest) String() string

type RelationActionResponse

type RelationActionResponse 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 (*RelationActionResponse) Descriptor deprecated

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

Deprecated: Use RelationActionResponse.ProtoReflect.Descriptor instead.

func (*RelationActionResponse) FastRead

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

func (*RelationActionResponse) FastWrite

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

func (*RelationActionResponse) GetStatusCode

func (x *RelationActionResponse) GetStatusCode() int32

func (*RelationActionResponse) GetStatusMsg

func (x *RelationActionResponse) GetStatusMsg() string

func (*RelationActionResponse) ProtoMessage

func (*RelationActionResponse) ProtoMessage()

func (*RelationActionResponse) ProtoReflect

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

func (*RelationActionResponse) Reset

func (x *RelationActionResponse) Reset()

func (*RelationActionResponse) Size

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

func (*RelationActionResponse) String

func (x *RelationActionResponse) String() string

type RelationFollowListRequest

type RelationFollowListRequest struct {
	UserId int64  `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id
	Token  string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`                  // 用户鉴权token
	// contains filtered or unexported fields
}

func (*RelationFollowListRequest) Descriptor deprecated

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

Deprecated: Use RelationFollowListRequest.ProtoReflect.Descriptor instead.

func (*RelationFollowListRequest) FastRead

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

func (*RelationFollowListRequest) FastWrite

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

func (*RelationFollowListRequest) GetToken

func (x *RelationFollowListRequest) GetToken() string

func (*RelationFollowListRequest) GetUserId

func (x *RelationFollowListRequest) GetUserId() int64

func (*RelationFollowListRequest) ProtoMessage

func (*RelationFollowListRequest) ProtoMessage()

func (*RelationFollowListRequest) ProtoReflect

func (*RelationFollowListRequest) Reset

func (x *RelationFollowListRequest) Reset()

func (*RelationFollowListRequest) Size

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

func (*RelationFollowListRequest) String

func (x *RelationFollowListRequest) String() string

type RelationFollowListResponse

type RelationFollowListResponse 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"`     // 返回状态描述
	UserList   []*user.User `protobuf:"bytes,3,rep,name=user_list,json=userList,proto3" json:"user_list,omitempty"`        // 用户信息列表
	// contains filtered or unexported fields
}

func (*RelationFollowListResponse) Descriptor deprecated

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

Deprecated: Use RelationFollowListResponse.ProtoReflect.Descriptor instead.

func (*RelationFollowListResponse) FastRead

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

func (*RelationFollowListResponse) FastWrite

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

func (*RelationFollowListResponse) GetStatusCode

func (x *RelationFollowListResponse) GetStatusCode() int32

func (*RelationFollowListResponse) GetStatusMsg

func (x *RelationFollowListResponse) GetStatusMsg() string

func (*RelationFollowListResponse) GetUserList

func (x *RelationFollowListResponse) GetUserList() []*user.User

func (*RelationFollowListResponse) ProtoMessage

func (*RelationFollowListResponse) ProtoMessage()

func (*RelationFollowListResponse) ProtoReflect

func (*RelationFollowListResponse) Reset

func (x *RelationFollowListResponse) Reset()

func (*RelationFollowListResponse) Size

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

func (*RelationFollowListResponse) String

func (x *RelationFollowListResponse) String() string

type RelationFollowerListRequest

type RelationFollowerListRequest struct {
	UserId int64  `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id
	Token  string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`                  // 用户鉴权token
	// contains filtered or unexported fields
}

func (*RelationFollowerListRequest) Descriptor deprecated

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

Deprecated: Use RelationFollowerListRequest.ProtoReflect.Descriptor instead.

func (*RelationFollowerListRequest) FastRead

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

func (*RelationFollowerListRequest) FastWrite

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

func (*RelationFollowerListRequest) GetToken

func (x *RelationFollowerListRequest) GetToken() string

func (*RelationFollowerListRequest) GetUserId

func (x *RelationFollowerListRequest) GetUserId() int64

func (*RelationFollowerListRequest) ProtoMessage

func (*RelationFollowerListRequest) ProtoMessage()

func (*RelationFollowerListRequest) ProtoReflect

func (*RelationFollowerListRequest) Reset

func (x *RelationFollowerListRequest) Reset()

func (*RelationFollowerListRequest) Size

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

func (*RelationFollowerListRequest) String

func (x *RelationFollowerListRequest) String() string

type RelationFollowerListResponse

type RelationFollowerListResponse 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"`     // 返回状态描述
	UserList   []*user.User `protobuf:"bytes,3,rep,name=user_list,json=userList,proto3" json:"user_list,omitempty"`        // 用户列表
	// contains filtered or unexported fields
}

func (*RelationFollowerListResponse) Descriptor deprecated

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

Deprecated: Use RelationFollowerListResponse.ProtoReflect.Descriptor instead.

func (*RelationFollowerListResponse) FastRead

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

func (*RelationFollowerListResponse) FastWrite

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

func (*RelationFollowerListResponse) GetStatusCode

func (x *RelationFollowerListResponse) GetStatusCode() int32

func (*RelationFollowerListResponse) GetStatusMsg

func (x *RelationFollowerListResponse) GetStatusMsg() string

func (*RelationFollowerListResponse) GetUserList

func (x *RelationFollowerListResponse) GetUserList() []*user.User

func (*RelationFollowerListResponse) ProtoMessage

func (*RelationFollowerListResponse) ProtoMessage()

func (*RelationFollowerListResponse) ProtoReflect

func (*RelationFollowerListResponse) Reset

func (x *RelationFollowerListResponse) Reset()

func (*RelationFollowerListResponse) Size

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

func (*RelationFollowerListResponse) String

type RelationFriendListRequest

type RelationFriendListRequest struct {
	UserId int64  `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // 用户id
	Token  string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`                  // 用户鉴权token
	// contains filtered or unexported fields
}

func (*RelationFriendListRequest) Descriptor deprecated

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

Deprecated: Use RelationFriendListRequest.ProtoReflect.Descriptor instead.

func (*RelationFriendListRequest) FastRead

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

func (*RelationFriendListRequest) FastWrite

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

func (*RelationFriendListRequest) GetToken

func (x *RelationFriendListRequest) GetToken() string

func (*RelationFriendListRequest) GetUserId

func (x *RelationFriendListRequest) GetUserId() int64

func (*RelationFriendListRequest) ProtoMessage

func (*RelationFriendListRequest) ProtoMessage()

func (*RelationFriendListRequest) ProtoReflect

func (*RelationFriendListRequest) Reset

func (x *RelationFriendListRequest) Reset()

func (*RelationFriendListRequest) Size

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

func (*RelationFriendListRequest) String

func (x *RelationFriendListRequest) String() string

type RelationFriendListResponse

type RelationFriendListResponse 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"`     // 返回状态描述
	UserList   []*FriendUser `protobuf:"bytes,3,rep,name=user_list,json=userList,proto3" json:"user_list,omitempty"`        // 用户列表
	// contains filtered or unexported fields
}

func (*RelationFriendListResponse) Descriptor deprecated

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

Deprecated: Use RelationFriendListResponse.ProtoReflect.Descriptor instead.

func (*RelationFriendListResponse) FastRead

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

func (*RelationFriendListResponse) FastWrite

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

func (*RelationFriendListResponse) GetStatusCode

func (x *RelationFriendListResponse) GetStatusCode() int32

func (*RelationFriendListResponse) GetStatusMsg

func (x *RelationFriendListResponse) GetStatusMsg() string

func (*RelationFriendListResponse) GetUserList

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

func (*RelationFriendListResponse) ProtoMessage

func (*RelationFriendListResponse) ProtoMessage()

func (*RelationFriendListResponse) ProtoReflect

func (*RelationFriendListResponse) Reset

func (x *RelationFriendListResponse) Reset()

func (*RelationFriendListResponse) Size

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

func (*RelationFriendListResponse) String

func (x *RelationFriendListResponse) String() string

type RelationService

type RelationService interface {
	RelationAction(ctx context.Context, req *RelationActionRequest) (res *RelationActionResponse, err error)
	FollowList(ctx context.Context, req *RelationFollowListRequest) (res *RelationFollowListResponse, err error)
	FollowerList(ctx context.Context, req *RelationFollowerListRequest) (res *RelationFollowerListResponse, err error)
	FriendList(ctx context.Context, req *RelationFriendListRequest) (res *RelationFriendListResponse, 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