Documentation ¶
Index ¶
- func ConvertAllVideoInfo(ctx context.Context, userId int64, list []operation.TVideoInfo) (res []*feed.VideoInfo, err error)
- func ConvertVideoInfo(ctx context.Context, userId int64, info operation.TVideoInfo) (res *feed.VideoInfo, err error)
- func GetVideoList(ctx context.Context, userId int64, latestTime int64) (list []*feed.VideoInfo, nextTime *int64, err error)
- func GetVideoListById(ctx context.Context, userId int64, queryId int64) (list []*feed.VideoInfo, err error)
- func GetVideoListByIdHandler(ctx context.Context, request *feed.GetByIDRequest) (resp *feed.FeedResponse, err error)
- func GetVideoListHandler(ctx context.Context, request *feed.FeedRequest) (resp *feed.FeedResponse, err error)
- func PackResponse(list []*feed.VideoInfo, status constant.Status, nextTime *int64) (response *feed.FeedResponse)
- func ParseToken(token string) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertAllVideoInfo ¶
func ConvertVideoInfo ¶
func GetVideoList ¶
func GetVideoListById ¶
func GetVideoListByIdHandler ¶
func GetVideoListByIdHandler(ctx context.Context, request *feed.GetByIDRequest) (resp *feed.FeedResponse, err error)
func GetVideoListHandler ¶
func GetVideoListHandler(ctx context.Context, request *feed.FeedRequest) (resp *feed.FeedResponse, err error)
func PackResponse ¶
func ParseToken ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.