Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommentService ¶
type CommentService struct {
// contains filtered or unexported fields
}
func NewCommentService ¶
func NewCommentService(ctx context.Context) *CommentService
func (CommentService) CommentAction ¶
func (s CommentService) CommentAction(req *interact.CommentActionRequest, userID int64) (err error)
CommentAction 添加或删除评论
func (CommentService) GetCommentList ¶
func (s CommentService) GetCommentList(videoID int64, myID int64) (comments []*interact.Comment, err error)
GetCommentList 获取视频下的所有评论
type FavoriteService ¶
type FavoriteService struct {
// contains filtered or unexported fields
}
func NewFavoriteService ¶
func NewFavoriteService(ctx context.Context) *FavoriteService
func (FavoriteService) FavoriteAction ¶
func (s FavoriteService) FavoriteAction(req *interact.FavoriteActionRequest, userID int64) (err error)
FavoriteAction 点赞或取消赞
func (FavoriteService) GetFavoriteList ¶
func (s FavoriteService) GetFavoriteList(userID int64, myID int64) (videos []*video.Video, err error)
GetFavoriteList 获取用户所有点赞视频
type GetVideoInteractService ¶
type GetVideoInteractService struct {
// contains filtered or unexported fields
}
func NewGetVideoInteractService ¶
func NewGetVideoInteractService(ctx context.Context) *GetVideoInteractService
func (*GetVideoInteractService) GetVideoInteract ¶
func (s *GetVideoInteractService) GetVideoInteract(req *interact.VideoInteractRequest) (favoriteCount int, commentCount int, isFavorite bool, err error)
GetVideoInteract 获取视频的点赞数、评论数
Click to show internal directories.
Click to hide internal directories.