Versions in this module Expand all Collapse all v1 v1.1.0 Jul 18, 2022 Changes in this version + var File_relation_proto protoreflect.FileDescriptor + type BaseResp struct + ServiceTime int64 + StatusCode int32 + StatusMessage string + func (*BaseResp) Descriptor() ([]byte, []int) + func (*BaseResp) ProtoMessage() + func (x *BaseResp) GetServiceTime() int64 + func (x *BaseResp) GetStatusCode() int32 + func (x *BaseResp) GetStatusMessage() string + func (x *BaseResp) ProtoReflect() protoreflect.Message + func (x *BaseResp) Reset() + func (x *BaseResp) String() string + type FollowListRequest struct + Token string + UserId int64 + func (*FollowListRequest) Descriptor() ([]byte, []int) + func (*FollowListRequest) ProtoMessage() + func (x *FollowListRequest) GetToken() string + func (x *FollowListRequest) GetUserId() int64 + func (x *FollowListRequest) ProtoReflect() protoreflect.Message + func (x *FollowListRequest) Reset() + func (x *FollowListRequest) String() string + type FollowListResponse struct + BaseResp *BaseResp + UserList []*User + func (*FollowListResponse) Descriptor() ([]byte, []int) + func (*FollowListResponse) ProtoMessage() + func (x *FollowListResponse) GetBaseResp() *BaseResp + func (x *FollowListResponse) GetUserList() []*User + func (x *FollowListResponse) ProtoReflect() protoreflect.Message + func (x *FollowListResponse) Reset() + func (x *FollowListResponse) String() string + type FollowerListRequest struct + Token string + UserId int64 + func (*FollowerListRequest) Descriptor() ([]byte, []int) + func (*FollowerListRequest) ProtoMessage() + func (x *FollowerListRequest) GetToken() string + func (x *FollowerListRequest) GetUserId() int64 + func (x *FollowerListRequest) ProtoReflect() protoreflect.Message + func (x *FollowerListRequest) Reset() + func (x *FollowerListRequest) String() string + type FollowerListResponse struct + BaseResp *BaseResp + UserList []*User + func (*FollowerListResponse) Descriptor() ([]byte, []int) + func (*FollowerListResponse) ProtoMessage() + func (x *FollowerListResponse) GetBaseResp() *BaseResp + func (x *FollowerListResponse) GetUserList() []*User + func (x *FollowerListResponse) ProtoReflect() protoreflect.Message + func (x *FollowerListResponse) Reset() + func (x *FollowerListResponse) String() string + type RelationActionRequest struct + ActionType int32 + ToUserId int64 + Token string + func (*RelationActionRequest) Descriptor() ([]byte, []int) + func (*RelationActionRequest) ProtoMessage() + func (x *RelationActionRequest) GetActionType() int32 + func (x *RelationActionRequest) GetToUserId() int64 + func (x *RelationActionRequest) GetToken() string + func (x *RelationActionRequest) ProtoReflect() protoreflect.Message + func (x *RelationActionRequest) Reset() + func (x *RelationActionRequest) String() string + type RelationActionResponse struct + BaseResp *BaseResp + func (*RelationActionResponse) Descriptor() ([]byte, []int) + func (*RelationActionResponse) ProtoMessage() + func (x *RelationActionResponse) GetBaseResp() *BaseResp + func (x *RelationActionResponse) ProtoReflect() protoreflect.Message + func (x *RelationActionResponse) Reset() + func (x *RelationActionResponse) String() string + type RelationService interface + FollowList func(ctx context.Context, req *FollowListRequest) (res *FollowListResponse, err error) + FollowerList func(ctx context.Context, req *FollowerListRequest) (res *FollowerListResponse, err error) + RelationAction func(ctx context.Context, req *RelationActionRequest) (res *RelationActionResponse, err error) + type User struct + FollowCount int64 + FollowerCount int64 + Id int64 + IsFollow bool + Name string + func (*User) Descriptor() ([]byte, []int) + func (*User) ProtoMessage() + func (x *User) GetFollowCount() int64 + func (x *User) GetFollowerCount() int64 + func (x *User) GetId() int64 + func (x *User) GetIsFollow() bool + func (x *User) GetName() string + func (x *User) ProtoReflect() protoreflect.Message + func (x *User) Reset() + func (x *User) String() string