Documentation ¶
Index ¶
- func CancelSubscribeUser(db *gorm.DB, user *models.User, subscriberUserID uint) (*models.User, error)
- func CreateComment(db *gorm.DB, comment *models.Comment) *models.Comment
- func CreateUser(db *gorm.DB, user *models.User) *models.User
- func CreateVideo(db *gorm.DB, video *models.Video) *models.Video
- func DeleteComment(db *gorm.DB, commentID uint) error
- func GetComments(db *gorm.DB, videoID uint) []models.Comment
- func GetUserByID(db *gorm.DB, userID uint) (*models.User, error)
- func GetUserByName(db *gorm.DB, name string) *models.User
- func GetUserFollowersByID(db *gorm.DB, userID uint) []models.User
- func GetUserFollowersCountByID(db *gorm.DB, userID uint) int64
- func GetUserLikeVideosByUserID(db *gorm.DB, userID uint) []models.Video
- func GetUserPublishVideosByID(db *gorm.DB, userID uint) []models.Video
- func GetUserSubscribersByID(db *gorm.DB, userID uint) []models.User
- func GetUserSubscribersCountByID(db *gorm.DB, userID uint) int64
- func GetVideoByID(db *gorm.DB, videoID uint) (*models.Video, error)
- func GetVideoCommentsCountByID(db *gorm.DB, videoID uint) int64
- func GetVideoLikesCount(db *gorm.DB, videoID uint) int64
- func GetVideoUserFavoritesByID(db *gorm.DB, videoID uint) []models.User
- func GetVideos(db *gorm.DB, latestTime int64, userID uint) []models.Video
- func IsUserFavoriteVideo(db *gorm.DB, userID, videoID uint) bool
- func IsUserFollow(db *gorm.DB, userID, anotherUserID uint) bool
- func SubscribeUser(db *gorm.DB, user *models.User, subscriberUserID uint) (*models.User, error)
- func UserDislikeVideo(db *gorm.DB, user *models.User, videoID uint) error
- func UserLikeVideo(db *gorm.DB, user *models.User, videoID uint) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CancelSubscribeUser ¶
func SubscribeUser ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.