Documentation ¶
Index ¶
- Variables
- func RegisterFavoriteListServer(s *grpc.Server, srv FavoriteListServer)
- type DouyinFavoriteListRequest
- func (*DouyinFavoriteListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DouyinFavoriteListRequest) GetToken() string
- func (x *DouyinFavoriteListRequest) GetUserId() int64
- func (*DouyinFavoriteListRequest) ProtoMessage()
- func (x *DouyinFavoriteListRequest) ProtoReflect() protoreflect.Message
- func (x *DouyinFavoriteListRequest) Reset()
- func (x *DouyinFavoriteListRequest) String() string
- type DouyinFavoriteListResponse
- func (*DouyinFavoriteListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DouyinFavoriteListResponse) GetStatusCode() int32
- func (x *DouyinFavoriteListResponse) GetStatusMsg() string
- func (x *DouyinFavoriteListResponse) GetVideoList() []*Video
- func (*DouyinFavoriteListResponse) ProtoMessage()
- func (x *DouyinFavoriteListResponse) ProtoReflect() protoreflect.Message
- func (x *DouyinFavoriteListResponse) Reset()
- func (x *DouyinFavoriteListResponse) String() string
- type FavoriteListClient
- type FavoriteListServer
- type UnimplementedFavoriteListServer
- 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
- type Video
- func (*Video) Descriptor() ([]byte, []int)deprecated
- func (x *Video) GetAuthor() *User
- func (x *Video) GetCommentCount() int64
- func (x *Video) GetCoverUrl() string
- func (x *Video) GetFavoriteCount() int64
- func (x *Video) GetId() int64
- func (x *Video) GetIsFavorite() bool
- func (x *Video) GetPlayUrl() string
- func (x *Video) GetTitle() string
- func (*Video) ProtoMessage()
- func (x *Video) ProtoReflect() protoreflect.Message
- func (x *Video) Reset()
- func (x *Video) String() string
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 (x *DouyinFavoriteListRequest) ProtoReflect() protoreflect.Message
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 (x *DouyinFavoriteListResponse) ProtoReflect() protoreflect.Message
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.
func NewFavoriteListClient ¶
func NewFavoriteListClient(cc grpc.ClientConnInterface) FavoriteListClient
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 ¶
func (*UnimplementedFavoriteListServer) GetFavoriteList(context.Context, *DouyinFavoriteListRequest) (*DouyinFavoriteListResponse, error)
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
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) GetCommentCount ¶
func (*Video) GetCoverUrl ¶
func (*Video) GetFavoriteCount ¶
func (*Video) GetIsFavorite ¶
func (*Video) GetPlayUrl ¶
func (*Video) ProtoMessage ¶
func (*Video) ProtoMessage()
func (*Video) ProtoReflect ¶
func (x *Video) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.