Versions in this module Expand all Collapse all v1 v1.1.0 Jul 18, 2022 Changes in this version + var File_feed_proto protoreflect.FileDescriptor + type BaseResp struct + ServiceTime int64 + StatusCode int32 + StatusMessage string + func (*BaseResp) Descriptor() ([]byte, []int) + func (*BaseResp) ProtoMessage() + func (x *BaseResp) GetServiceTime() int64 + func (x *BaseResp) GetStatusCode() int32 + func (x *BaseResp) GetStatusMessage() string + func (x *BaseResp) ProtoReflect() protoreflect.Message + func (x *BaseResp) Reset() + func (x *BaseResp) String() string + type FeedRequest struct + LatestTime int64 + Token string + func (*FeedRequest) Descriptor() ([]byte, []int) + func (*FeedRequest) ProtoMessage() + func (x *FeedRequest) GetLatestTime() int64 + func (x *FeedRequest) GetToken() string + func (x *FeedRequest) ProtoReflect() protoreflect.Message + func (x *FeedRequest) Reset() + func (x *FeedRequest) String() string + type FeedResponse struct + BaseResp *BaseResp + NextTime int64 + VideoList []*Video + func (*FeedResponse) Descriptor() ([]byte, []int) + func (*FeedResponse) ProtoMessage() + func (x *FeedResponse) GetBaseResp() *BaseResp + func (x *FeedResponse) GetNextTime() int64 + func (x *FeedResponse) GetVideoList() []*Video + func (x *FeedResponse) ProtoReflect() protoreflect.Message + func (x *FeedResponse) Reset() + func (x *FeedResponse) String() string + type FeedService interface + Feed func(ctx context.Context, req *FeedRequest) (res *FeedResponse, err error) + type User struct + FollowCount int64 + FollowerCount int64 + Id int64 + IsFollow bool + Name string + func (*User) Descriptor() ([]byte, []int) + func (*User) ProtoMessage() + 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 (x *User) ProtoReflect() protoreflect.Message + func (x *User) Reset() + func (x *User) String() string + type Video struct + Author *User + CommentCount int64 + CoverUrl string + FavoriteCount int64 + Id int64 + IsFavorite bool + PlayUrl string + Title string + func (*Video) Descriptor() ([]byte, []int) + func (*Video) ProtoMessage() + 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 (x *Video) ProtoReflect() protoreflect.Message + func (x *Video) Reset() + func (x *Video) String() string