relation

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_relation_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 FollowListRequest

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

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

Deprecated: Use FollowListRequest.ProtoReflect.Descriptor instead.

func (*FollowListRequest) FastRead

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

func (*FollowListRequest) FastWrite

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

func (*FollowListRequest) GetToken

func (x *FollowListRequest) GetToken() string

func (*FollowListRequest) GetUserId

func (x *FollowListRequest) GetUserId() int64

func (*FollowListRequest) ProtoMessage

func (*FollowListRequest) ProtoMessage()

func (*FollowListRequest) ProtoReflect

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

func (*FollowListRequest) Reset

func (x *FollowListRequest) Reset()

func (*FollowListRequest) Size

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

func (*FollowListRequest) String

func (x *FollowListRequest) String() string

type FollowListResponse

type FollowListResponse struct {
	BaseResp *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"`
	UserList []*User   `protobuf:"bytes,2,rep,name=user_list,json=userList,proto3" json:"user_list,omitempty"` //用户信息列表
	// contains filtered or unexported fields
}

func (*FollowListResponse) Descriptor deprecated

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

Deprecated: Use FollowListResponse.ProtoReflect.Descriptor instead.

func (*FollowListResponse) FastRead

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

func (*FollowListResponse) FastWrite

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

func (*FollowListResponse) GetBaseResp

func (x *FollowListResponse) GetBaseResp() *BaseResp

func (*FollowListResponse) GetUserList

func (x *FollowListResponse) GetUserList() []*User

func (*FollowListResponse) ProtoMessage

func (*FollowListResponse) ProtoMessage()

func (*FollowListResponse) ProtoReflect

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

func (*FollowListResponse) Reset

func (x *FollowListResponse) Reset()

func (*FollowListResponse) Size

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

func (*FollowListResponse) String

func (x *FollowListResponse) String() string

type FollowerListRequest

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

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

Deprecated: Use FollowerListRequest.ProtoReflect.Descriptor instead.

func (*FollowerListRequest) FastRead

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

func (*FollowerListRequest) FastWrite

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

func (*FollowerListRequest) GetToken

func (x *FollowerListRequest) GetToken() string

func (*FollowerListRequest) GetUserId

func (x *FollowerListRequest) GetUserId() int64

func (*FollowerListRequest) ProtoMessage

func (*FollowerListRequest) ProtoMessage()

func (*FollowerListRequest) ProtoReflect

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

func (*FollowerListRequest) Reset

func (x *FollowerListRequest) Reset()

func (*FollowerListRequest) Size

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

func (*FollowerListRequest) String

func (x *FollowerListRequest) String() string

type FollowerListResponse

type FollowerListResponse struct {
	BaseResp *BaseResp `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"`
	UserList []*User   `protobuf:"bytes,2,rep,name=user_list,json=userList,proto3" json:"user_list,omitempty"` //用户列表
	// contains filtered or unexported fields
}

func (*FollowerListResponse) Descriptor deprecated

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

Deprecated: Use FollowerListResponse.ProtoReflect.Descriptor instead.

func (*FollowerListResponse) FastRead

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

func (*FollowerListResponse) FastWrite

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

func (*FollowerListResponse) GetBaseResp

func (x *FollowerListResponse) GetBaseResp() *BaseResp

func (*FollowerListResponse) GetUserList

func (x *FollowerListResponse) GetUserList() []*User

func (*FollowerListResponse) ProtoMessage

func (*FollowerListResponse) ProtoMessage()

func (*FollowerListResponse) ProtoReflect

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

func (*FollowerListResponse) Reset

func (x *FollowerListResponse) Reset()

func (*FollowerListResponse) Size

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

func (*FollowerListResponse) String

func (x *FollowerListResponse) String() string

type FriendListRequest

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

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

Deprecated: Use FriendListRequest.ProtoReflect.Descriptor instead.

func (*FriendListRequest) FastRead

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

func (*FriendListRequest) FastWrite

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

func (*FriendListRequest) GetToken

func (x *FriendListRequest) GetToken() string

func (*FriendListRequest) GetUserId

func (x *FriendListRequest) GetUserId() int64

func (*FriendListRequest) ProtoMessage

func (*FriendListRequest) ProtoMessage()

func (*FriendListRequest) ProtoReflect

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

func (*FriendListRequest) Reset

func (x *FriendListRequest) Reset()

func (*FriendListRequest) Size

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

func (*FriendListRequest) String

func (x *FriendListRequest) String() string

type FriendListResponse

type FriendListResponse struct {
	BaseResp *BaseResp     `protobuf:"bytes,1,opt,name=base_resp,json=baseResp,proto3" json:"base_resp,omitempty"`
	UserList []*FriendUser `protobuf:"bytes,2,rep,name=user_list,json=userList,proto3" json:"user_list,omitempty"` //用户列表
	// contains filtered or unexported fields
}

func (*FriendListResponse) Descriptor deprecated

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

Deprecated: Use FriendListResponse.ProtoReflect.Descriptor instead.

func (*FriendListResponse) FastRead

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

func (*FriendListResponse) FastWrite

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

func (*FriendListResponse) GetBaseResp

func (x *FriendListResponse) GetBaseResp() *BaseResp

func (*FriendListResponse) GetUserList

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

func (*FriendListResponse) ProtoMessage

func (*FriendListResponse) ProtoMessage()

func (*FriendListResponse) ProtoReflect

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

func (*FriendListResponse) Reset

func (x *FriendListResponse) Reset()

func (*FriendListResponse) Size

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

func (*FriendListResponse) String

func (x *FriendListResponse) String() string

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

func (x *RelationActionResponse) GetBaseResp() *BaseResp

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 RelationService

type RelationService interface {
	RelationAction(ctx context.Context, req *RelationActionRequest) (res *RelationActionResponse, err error)
	FollowList(ctx context.Context, req *FollowListRequest) (res *FollowListResponse, err error)
	FollowerList(ctx context.Context, req *FollowerListRequest) (res *FollowerListResponse, err error)
	FriendList(ctx context.Context, req *FriendListRequest) (res *FriendListResponse, 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