Documentation ¶
Index ¶
- Variables
- func RegisterFollowListServer(s grpc.ServiceRegistrar, srv FollowListServer)
- type DouyinRelationFollowListRequest
- func (*DouyinRelationFollowListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DouyinRelationFollowListRequest) GetToken() string
- func (x *DouyinRelationFollowListRequest) GetUserId() int64
- func (*DouyinRelationFollowListRequest) ProtoMessage()
- func (x *DouyinRelationFollowListRequest) ProtoReflect() protoreflect.Message
- func (x *DouyinRelationFollowListRequest) Reset()
- func (x *DouyinRelationFollowListRequest) String() string
- type DouyinRelationFollowListResponse
- func (*DouyinRelationFollowListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DouyinRelationFollowListResponse) GetStatusCode() int32
- func (x *DouyinRelationFollowListResponse) GetStatusMsg() string
- func (x *DouyinRelationFollowListResponse) GetUserList() []*User
- func (*DouyinRelationFollowListResponse) ProtoMessage()
- func (x *DouyinRelationFollowListResponse) ProtoReflect() protoreflect.Message
- func (x *DouyinRelationFollowListResponse) Reset()
- func (x *DouyinRelationFollowListResponse) String() string
- type FollowListClient
- type FollowListServer
- type UnimplementedFollowListServer
- type UnsafeFollowListServer
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- 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 (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
Constants ¶
This section is empty.
Variables ¶
var File_followlist_proto protoreflect.FileDescriptor
var FollowList_ServiceDesc = grpc.ServiceDesc{ ServiceName: "douyin.extra.second.FollowList", HandlerType: (*FollowListServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetFollowList", Handler: _FollowList_GetFollowList_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "followlist.proto", }
FollowList_ServiceDesc is the grpc.ServiceDesc for FollowList service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterFollowListServer ¶
func RegisterFollowListServer(s grpc.ServiceRegistrar, srv FollowListServer)
Types ¶
type DouyinRelationFollowListRequest ¶
type DouyinRelationFollowListRequest struct { UserId *int64 `protobuf:"varint,1,req,name=user_id,json=userId" json:"user_id,omitempty"` // 用户id Token *string `protobuf:"bytes,2,req,name=token" json:"token,omitempty"` // 用户鉴权token // contains filtered or unexported fields }
func (*DouyinRelationFollowListRequest) Descriptor
deprecated
func (*DouyinRelationFollowListRequest) Descriptor() ([]byte, []int)
Deprecated: Use DouyinRelationFollowListRequest.ProtoReflect.Descriptor instead.
func (*DouyinRelationFollowListRequest) GetToken ¶
func (x *DouyinRelationFollowListRequest) GetToken() string
func (*DouyinRelationFollowListRequest) GetUserId ¶
func (x *DouyinRelationFollowListRequest) GetUserId() int64
func (*DouyinRelationFollowListRequest) ProtoMessage ¶
func (*DouyinRelationFollowListRequest) ProtoMessage()
func (*DouyinRelationFollowListRequest) ProtoReflect ¶
func (x *DouyinRelationFollowListRequest) ProtoReflect() protoreflect.Message
func (*DouyinRelationFollowListRequest) Reset ¶
func (x *DouyinRelationFollowListRequest) Reset()
func (*DouyinRelationFollowListRequest) String ¶
func (x *DouyinRelationFollowListRequest) String() string
type DouyinRelationFollowListResponse ¶
type DouyinRelationFollowListResponse struct { StatusCode *int32 `protobuf:"varint,1,req,name=status_code,json=statusCode" json:"status_code,omitempty"` // 状态码,0-成功,其他值-失败 StatusMsg *string `protobuf:"bytes,2,opt,name=status_msg,json=statusMsg" json:"status_msg,omitempty"` // 返回状态描述 UserList []*User `protobuf:"bytes,3,rep,name=user_list,json=userList" json:"user_list,omitempty"` // 用户信息列表 // contains filtered or unexported fields }
func (*DouyinRelationFollowListResponse) Descriptor
deprecated
func (*DouyinRelationFollowListResponse) Descriptor() ([]byte, []int)
Deprecated: Use DouyinRelationFollowListResponse.ProtoReflect.Descriptor instead.
func (*DouyinRelationFollowListResponse) GetStatusCode ¶
func (x *DouyinRelationFollowListResponse) GetStatusCode() int32
func (*DouyinRelationFollowListResponse) GetStatusMsg ¶
func (x *DouyinRelationFollowListResponse) GetStatusMsg() string
func (*DouyinRelationFollowListResponse) GetUserList ¶
func (x *DouyinRelationFollowListResponse) GetUserList() []*User
func (*DouyinRelationFollowListResponse) ProtoMessage ¶
func (*DouyinRelationFollowListResponse) ProtoMessage()
func (*DouyinRelationFollowListResponse) ProtoReflect ¶
func (x *DouyinRelationFollowListResponse) ProtoReflect() protoreflect.Message
func (*DouyinRelationFollowListResponse) Reset ¶
func (x *DouyinRelationFollowListResponse) Reset()
func (*DouyinRelationFollowListResponse) String ¶
func (x *DouyinRelationFollowListResponse) String() string
type FollowListClient ¶
type FollowListClient interface {
GetFollowList(ctx context.Context, in *DouyinRelationFollowListRequest, opts ...grpc.CallOption) (*DouyinRelationFollowListResponse, error)
}
FollowListClient is the client API for FollowList service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.golang.ir/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewFollowListClient ¶
func NewFollowListClient(cc grpc.ClientConnInterface) FollowListClient
type FollowListServer ¶
type FollowListServer interface { GetFollowList(context.Context, *DouyinRelationFollowListRequest) (*DouyinRelationFollowListResponse, error) // contains filtered or unexported methods }
FollowListServer is the server API for FollowList service. All implementations must embed UnimplementedFollowListServer for forward compatibility
type UnimplementedFollowListServer ¶
type UnimplementedFollowListServer struct { }
UnimplementedFollowListServer must be embedded to have forward compatible implementations.
func (UnimplementedFollowListServer) GetFollowList ¶
func (UnimplementedFollowListServer) GetFollowList(context.Context, *DouyinRelationFollowListRequest) (*DouyinRelationFollowListResponse, error)
type UnsafeFollowListServer ¶
type UnsafeFollowListServer interface {
// contains filtered or unexported methods
}
UnsafeFollowListServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FollowListServer will result in compilation errors.
type User ¶
type User struct { Id *int64 `protobuf:"varint,1,req,name=id" json:"id,omitempty"` // 用户id Name *string `protobuf:"bytes,2,req,name=name" json:"name,omitempty"` // 用户名称 FollowCount *int64 `protobuf:"varint,3,opt,name=follow_count,json=followCount" json:"follow_count,omitempty"` // 关注总数 FollowerCount *int64 `protobuf:"varint,4,opt,name=follower_count,json=followerCount" json:"follower_count,omitempty"` // 粉丝总数 IsFollow *bool `protobuf:"varint,5,req,name=is_follow,json=isFollow" json:"is_follow,omitempty"` // true-已关注,false-未关注 // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetFollowCount ¶
func (*User) GetFollowerCount ¶
func (*User) GetIsFollow ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message