relation

package
v0.0.0-...-cb3206a Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: MIT Imports: 5 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 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) 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) 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) 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) 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) 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) 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) 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) 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) 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) String

func (x *FollowerListResponse) 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) 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) 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) 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) 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)
}

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-未关注
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

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

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

Directories

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

Jump to

Keyboard shortcuts

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