Documentation ¶
Index ¶
- Variables
- func CreateVideo(ctx context.Context, video *model.Video) error
- func DecreaseCommentCountById(ctx context.Context, videoId int64)
- func DecreaseFavoriteCountById(ctx context.Context, videoId int64)
- func GetAuthorId(ctx context.Context, videoId int64) int64
- func IncreaseCommentCountById(ctx context.Context, videoId int64)
- func IncreaseFavoriteCountById(ctx context.Context, videoId int64)
- func Init()
- func QueryVideo(ctx context.Context, latestTime int64, limit int) ([]*model.Video, error)
- func QueryVideoByIdBatch(ctx context.Context, idList []int64) ([]*model.Video, error)
- func QueryVideoByUserID(ctx context.Context, userID int64) ([]*model.Video, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
Functions ¶
func QueryVideo ¶
func QueryVideoByIdBatch ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.