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_followerlist_proto protoreflect.FileDescriptor
View Source
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 (*DouyinRelationFollowerListRequest) GetUserId

func (*DouyinRelationFollowerListRequest) ProtoMessage

func (*DouyinRelationFollowerListRequest) ProtoMessage()

func (*DouyinRelationFollowerListRequest) ProtoReflect

func (*DouyinRelationFollowerListRequest) Reset

func (*DouyinRelationFollowerListRequest) 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 (*DouyinRelationFollowerListResponse) Reset

func (*DouyinRelationFollowerListResponse) 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.golang.ir/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

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.

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