Documentation ¶
Index ¶
- func BuildBaseResp(err error) *video.BaseResp
- func GenerateCoverName(userID int64) string
- func GenerateVideoName(userID int64) string
- func Video(data *db.Video, user *user.User, favoriteCount int64, commentCount int64, ...) *video.Video
- func VideoLiked(data *db.Video, user *user.User, favoriteCount int64, commentCount int64) *video.Video
- func VideoLikedList(data []db.Video, userList []*user.User, favoriteCountList []int64, ...) []*video.Video
- func VideoList(data []db.Video, userList []*user.User, favoriteCountList []int64, ...) []*video.Video
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildBaseResp ¶
func GenerateCoverName ¶
func GenerateVideoName ¶
func VideoLiked ¶
func VideoLiked(data *db.Video, user *user.User, favoriteCount int64, commentCount int64) *video.Video
用于获取喜欢列表 IsFavorite保证为true
func VideoLikedList ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.