Documentation
¶
Index ¶
- Variables
- func RegisterFollowerlistServer(s grpc.ServiceRegistrar, srv FollowerlistServer)
- type DouyinRelationFollowerListRequest
- func (*DouyinRelationFollowerListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DouyinRelationFollowerListRequest) GetToken() string
- func (x *DouyinRelationFollowerListRequest) GetUserId() int64
- func (*DouyinRelationFollowerListRequest) ProtoMessage()
- func (x *DouyinRelationFollowerListRequest) ProtoReflect() protoreflect.Message
- func (x *DouyinRelationFollowerListRequest) Reset()
- func (x *DouyinRelationFollowerListRequest) String() string
- type DouyinRelationFollowerListResponse
- func (*DouyinRelationFollowerListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DouyinRelationFollowerListResponse) GetStatusCode() int32
- func (x *DouyinRelationFollowerListResponse) GetStatusMsg() string
- func (x *DouyinRelationFollowerListResponse) GetUserList() []*User
- func (*DouyinRelationFollowerListResponse) ProtoMessage()
- func (x *DouyinRelationFollowerListResponse) ProtoReflect() protoreflect.Message
- func (x *DouyinRelationFollowerListResponse) Reset()
- func (x *DouyinRelationFollowerListResponse) String() string
- type FollowerlistClient
- type FollowerlistServer
- type UnimplementedFollowerlistServer
- type UnsafeFollowerlistServer
- 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_followerlist_proto protoreflect.FileDescriptor
var Followerlist_ServiceDesc = grpc.ServiceDesc{ ServiceName: "douyin.extra.followerlist.Followerlist", HandlerType: (*FollowerlistServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetFollowerlist", Handler: _Followerlist_GetFollowerlist_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "followerlist.proto", }
Followerlist_ServiceDesc is the grpc.ServiceDesc for Followerlist service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterFollowerlistServer ¶
func RegisterFollowerlistServer(s grpc.ServiceRegistrar, srv FollowerlistServer)
Types ¶
type DouyinRelationFollowerListRequest ¶
type DouyinRelationFollowerListRequest 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 (*DouyinRelationFollowerListRequest) Descriptor
deprecated
func (*DouyinRelationFollowerListRequest) Descriptor() ([]byte, []int)
Deprecated: Use DouyinRelationFollowerListRequest.ProtoReflect.Descriptor instead.
func (*DouyinRelationFollowerListRequest) GetToken ¶
func (x *DouyinRelationFollowerListRequest) GetToken() string
func (*DouyinRelationFollowerListRequest) GetUserId ¶
func (x *DouyinRelationFollowerListRequest) GetUserId() int64
func (*DouyinRelationFollowerListRequest) ProtoMessage ¶
func (*DouyinRelationFollowerListRequest) ProtoMessage()
func (*DouyinRelationFollowerListRequest) ProtoReflect ¶
func (x *DouyinRelationFollowerListRequest) ProtoReflect() protoreflect.Message
func (*DouyinRelationFollowerListRequest) Reset ¶
func (x *DouyinRelationFollowerListRequest) Reset()
func (*DouyinRelationFollowerListRequest) String ¶
func (x *DouyinRelationFollowerListRequest) String() string
type DouyinRelationFollowerListResponse ¶
type DouyinRelationFollowerListResponse struct { StatusCode *int32 `protobuf:"varint,1,req,name=status_code,json=statusCode" json:"status_code,omitempty"` //状态码,o-成功,其他值-失败 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 (*DouyinRelationFollowerListResponse) Descriptor
deprecated
func (*DouyinRelationFollowerListResponse) Descriptor() ([]byte, []int)
Deprecated: Use DouyinRelationFollowerListResponse.ProtoReflect.Descriptor instead.
func (*DouyinRelationFollowerListResponse) GetStatusCode ¶
func (x *DouyinRelationFollowerListResponse) GetStatusCode() int32
func (*DouyinRelationFollowerListResponse) GetStatusMsg ¶
func (x *DouyinRelationFollowerListResponse) GetStatusMsg() string
func (*DouyinRelationFollowerListResponse) GetUserList ¶
func (x *DouyinRelationFollowerListResponse) GetUserList() []*User
func (*DouyinRelationFollowerListResponse) ProtoMessage ¶
func (*DouyinRelationFollowerListResponse) ProtoMessage()
func (*DouyinRelationFollowerListResponse) ProtoReflect ¶
func (x *DouyinRelationFollowerListResponse) ProtoReflect() protoreflect.Message
func (*DouyinRelationFollowerListResponse) Reset ¶
func (x *DouyinRelationFollowerListResponse) Reset()
func (*DouyinRelationFollowerListResponse) String ¶
func (x *DouyinRelationFollowerListResponse) String() string
type FollowerlistClient ¶
type FollowerlistClient interface {
GetFollowerlist(ctx context.Context, in *DouyinRelationFollowerListRequest, opts ...grpc.CallOption) (*DouyinRelationFollowerListResponse, error)
}
FollowerlistClient is the client API for Followerlist service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewFollowerlistClient ¶
func NewFollowerlistClient(cc grpc.ClientConnInterface) FollowerlistClient
type FollowerlistServer ¶
type FollowerlistServer interface { GetFollowerlist(context.Context, *DouyinRelationFollowerListRequest) (*DouyinRelationFollowerListResponse, error) // contains filtered or unexported methods }
FollowerlistServer is the server API for Followerlist service. All implementations must embed UnimplementedFollowerlistServer for forward compatibility
type UnimplementedFollowerlistServer ¶
type UnimplementedFollowerlistServer struct { }
UnimplementedFollowerlistServer must be embedded to have forward compatible implementations.
func (UnimplementedFollowerlistServer) GetFollowerlist ¶
func (UnimplementedFollowerlistServer) GetFollowerlist(context.Context, *DouyinRelationFollowerListRequest) (*DouyinRelationFollowerListResponse, error)
type UnsafeFollowerlistServer ¶
type UnsafeFollowerlistServer interface {
// contains filtered or unexported methods
}
UnsafeFollowerlistServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FollowerlistServer 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