pb

package
v0.0.0-...-f1d9293 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_followlist_proto protoreflect.FileDescriptor
View Source
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 (*DouyinRelationFollowListRequest) GetUserId

func (x *DouyinRelationFollowListRequest) GetUserId() int64

func (*DouyinRelationFollowListRequest) ProtoMessage

func (*DouyinRelationFollowListRequest) ProtoMessage()

func (*DouyinRelationFollowListRequest) ProtoReflect

func (*DouyinRelationFollowListRequest) Reset

func (*DouyinRelationFollowListRequest) 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 (*DouyinRelationFollowListResponse) Reset

func (*DouyinRelationFollowListResponse) 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.

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

Jump to

Keyboard shortcuts

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