Documentation ¶
Index ¶
- func CheckIsFavorite(ctx context.Context, videoID int64, userID int64) (bool, error)
- func CheckIsFollow(ctx context.Context, userID int64, followerID int64) (bool, error)
- func CheckIsFollowUser(ctx *gin.Context, checkUserId int64) bool
- func CreateUser(user *models.User) error
- func DeleteUser(user *models.User) error
- func GetUserByID(id uint64) (*models.User, error)
- func GetUserByUsername(username string) (*models.User, error)
- func QueryFeedVideo(ctx context.Context, limit int, latestTime int64) ([]*video.Video, error)
- func QueryPublishList(ctx context.Context, userID int64) ([]*video.Video, error)
- func RealTimeUser(ctx context.Context, u *models.User) error
- func RealTimeVideo(ctx context.Context, v *models.Video) error
- func SaveVideo(ctx context.Context, downUrl, title string, userId int64) error
- func UpdateUser(user *models.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIsFavorite ¶
判断当前视频是否被当前用户点赞
func CheckIsFollow ¶
判断某用户是否被当前用户关注
func GetUserByUsername ¶
GetUserByUsername 通过用户名查找用户
func QueryFeedVideo ¶
获取视频流
func QueryPublishList ¶
查询发布列表
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.