Versions in this module Expand all Collapse all v1 v1.0.0 Sep 7, 2023 Changes in this version + var DB *gorm.DB + var SF *utils.Snowflake + func GetVideoIDByUid(ctx context.Context, uid int64) (videoIDList []int64, err error) + func GetWorkCountByUid(ctx context.Context, uid int64) (workCount int64, err error) + func Init() + type Video struct + CoverUrl string + CreatedAt time.Time + DeletedAt gorm.DeletedAt + Id int64 + PlayUrl string + Title string + UpdatedAt time.Time + UserID int64 + func CreateVideo(ctx context.Context, video *Video) (*Video, error) + func GetVideoInfoByID(ctx context.Context, videoId []int64) ([]Video, error) + func GetVideoInfoByTime(ctx context.Context, latestTime string) ([]Video, error) + func GetVideoInfoByUid(ctx context.Context, uid int64) ([]Video, error)