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_favoritelist_proto protoreflect.FileDescriptor

Functions

func RegisterFavoriteListServer

func RegisterFavoriteListServer(s *grpc.Server, srv FavoriteListServer)

Types

type DouyinFavoriteListRequest

type DouyinFavoriteListRequest 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 (*DouyinFavoriteListRequest) Descriptor deprecated

func (*DouyinFavoriteListRequest) Descriptor() ([]byte, []int)

Deprecated: Use DouyinFavoriteListRequest.ProtoReflect.Descriptor instead.

func (*DouyinFavoriteListRequest) GetToken

func (x *DouyinFavoriteListRequest) GetToken() string

func (*DouyinFavoriteListRequest) GetUserId

func (x *DouyinFavoriteListRequest) GetUserId() int64

func (*DouyinFavoriteListRequest) ProtoMessage

func (*DouyinFavoriteListRequest) ProtoMessage()

func (*DouyinFavoriteListRequest) ProtoReflect

func (*DouyinFavoriteListRequest) Reset

func (x *DouyinFavoriteListRequest) Reset()

func (*DouyinFavoriteListRequest) String

func (x *DouyinFavoriteListRequest) String() string

type DouyinFavoriteListResponse

type DouyinFavoriteListResponse 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"`     // 返回状态描述
	VideoList  []*Video `protobuf:"bytes,3,rep,name=video_list,json=videoList" json:"video_list,omitempty"`     //用户点赞的视频列表
	// contains filtered or unexported fields
}

func (*DouyinFavoriteListResponse) Descriptor deprecated

func (*DouyinFavoriteListResponse) Descriptor() ([]byte, []int)

Deprecated: Use DouyinFavoriteListResponse.ProtoReflect.Descriptor instead.

func (*DouyinFavoriteListResponse) GetStatusCode

func (x *DouyinFavoriteListResponse) GetStatusCode() int32

func (*DouyinFavoriteListResponse) GetStatusMsg

func (x *DouyinFavoriteListResponse) GetStatusMsg() string

func (*DouyinFavoriteListResponse) GetVideoList

func (x *DouyinFavoriteListResponse) GetVideoList() []*Video

func (*DouyinFavoriteListResponse) ProtoMessage

func (*DouyinFavoriteListResponse) ProtoMessage()

func (*DouyinFavoriteListResponse) ProtoReflect

func (*DouyinFavoriteListResponse) Reset

func (x *DouyinFavoriteListResponse) Reset()

func (*DouyinFavoriteListResponse) String

func (x *DouyinFavoriteListResponse) String() string

type FavoriteListClient

type FavoriteListClient interface {
	GetFavoriteList(ctx context.Context, in *DouyinFavoriteListRequest, opts ...grpc.CallOption) (*DouyinFavoriteListResponse, error)
}

FavoriteListClient is the client API for FavoriteList service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type FavoriteListServer

type FavoriteListServer interface {
	GetFavoriteList(context.Context, *DouyinFavoriteListRequest) (*DouyinFavoriteListResponse, error)
}

FavoriteListServer is the server API for FavoriteList service.

type UnimplementedFavoriteListServer

type UnimplementedFavoriteListServer struct {
}

UnimplementedFavoriteListServer can be embedded to have forward compatible implementations.

func (*UnimplementedFavoriteListServer) GetFavoriteList

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

type Video

type Video struct {
	Id            *int64  `protobuf:"varint,1,req,name=id" json:"id,omitempty"`                                            //视频唯一标识
	Author        *User   `protobuf:"bytes,2,req,name=author" json:"author,omitempty"`                                     //视频作者信息
	PlayUrl       *string `protobuf:"bytes,3,req,name=play_url,json=playUrl" json:"play_url,omitempty"`                    //视频播放地址
	CoverUrl      *string `protobuf:"bytes,4,req,name=cover_url,json=coverUrl" json:"cover_url,omitempty"`                 //视频封面地址
	FavoriteCount *int64  `protobuf:"varint,5,req,name=favorite_count,json=favoriteCount" json:"favorite_count,omitempty"` //视频点赞总数
	CommentCount  *int64  `protobuf:"varint,6,req,name=comment_count,json=commentCount" json:"comment_count,omitempty"`    //视频评论总数
	IsFavorite    *bool   `protobuf:"varint,7,req,name=is_favorite,json=isFavorite" json:"is_favorite,omitempty"`          //true-已点赞,false-未点赞
	Title         *string `protobuf:"bytes,8,req,name=title" json:"title,omitempty"`                                       //视频标题
	// contains filtered or unexported fields
}

func (*Video) Descriptor deprecated

func (*Video) Descriptor() ([]byte, []int)

Deprecated: Use Video.ProtoReflect.Descriptor instead.

func (*Video) GetAuthor

func (x *Video) GetAuthor() *User

func (*Video) GetCommentCount

func (x *Video) GetCommentCount() int64

func (*Video) GetCoverUrl

func (x *Video) GetCoverUrl() string

func (*Video) GetFavoriteCount

func (x *Video) GetFavoriteCount() int64

func (*Video) GetId

func (x *Video) GetId() int64

func (*Video) GetIsFavorite

func (x *Video) GetIsFavorite() bool

func (*Video) GetPlayUrl

func (x *Video) GetPlayUrl() string

func (*Video) GetTitle

func (x *Video) GetTitle() string

func (*Video) ProtoMessage

func (*Video) ProtoMessage()

func (*Video) ProtoReflect

func (x *Video) ProtoReflect() protoreflect.Message

func (*Video) Reset

func (x *Video) Reset()

func (*Video) String

func (x *Video) String() string

Jump to

Keyboard shortcuts

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