Documentation ¶
Index ¶
- type InteractionService
- func (s *InteractionService) CreateComment(req *interaction.CommentActionRequest, uid int64) (*interaction.Comment, error)
- func (s *InteractionService) DeleteComment(req *interaction.CommentActionRequest, uid int64) (*interaction.Comment, error)
- func (s *InteractionService) Favorite(req *interaction.FavoriteActionRequest, uid int64) error
- func (s *InteractionService) FavoriteList(req *interaction.FavoriteListRequest) ([]*video.Video, error)
- func (s *InteractionService) GetCommentCount(req *interaction.CommentCountRequest) (count int64, err error)
- func (s *InteractionService) GetComments(req *interaction.CommentListRequest) ([]*interaction.Comment, error)
- func (s *InteractionService) GetUserFavoriteCount(req *interaction.UserFavoriteCountRequest) (int64, error)
- func (s *InteractionService) GetUserTotalFavorited(req *interaction.UserTotalFavoritedRequest) (int64, error)
- func (s *InteractionService) GetVideoFavoriteCount(req *interaction.VideoFavoritedCountRequest) (int64, error)
- func (s *InteractionService) IsFavorite(req *interaction.IsFavoriteRequest) (bool, error)
- func (s *InteractionService) UnFavorite(req *interaction.FavoriteActionRequest, uid int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InteractionService ¶
type InteractionService struct {
// contains filtered or unexported fields
}
func NewInteractionService ¶
func NewInteractionService(ctx context.Context) *InteractionService
func (*InteractionService) CreateComment ¶
func (s *InteractionService) CreateComment(req *interaction.CommentActionRequest, uid int64) (*interaction.Comment, error)
func (*InteractionService) DeleteComment ¶
func (s *InteractionService) DeleteComment(req *interaction.CommentActionRequest, uid int64) (*interaction.Comment, error)
func (*InteractionService) Favorite ¶
func (s *InteractionService) Favorite(req *interaction.FavoriteActionRequest, uid int64) error
func (*InteractionService) FavoriteList ¶
func (s *InteractionService) FavoriteList(req *interaction.FavoriteListRequest) ([]*video.Video, error)
func (*InteractionService) GetCommentCount ¶
func (s *InteractionService) GetCommentCount(req *interaction.CommentCountRequest) (count int64, err error)
func (*InteractionService) GetComments ¶
func (s *InteractionService) GetComments(req *interaction.CommentListRequest) ([]*interaction.Comment, error)
func (*InteractionService) GetUserFavoriteCount ¶
func (s *InteractionService) GetUserFavoriteCount(req *interaction.UserFavoriteCountRequest) (int64, error)
func (*InteractionService) GetUserTotalFavorited ¶
func (s *InteractionService) GetUserTotalFavorited(req *interaction.UserTotalFavoritedRequest) (int64, error)
func (*InteractionService) GetVideoFavoriteCount ¶
func (s *InteractionService) GetVideoFavoriteCount(req *interaction.VideoFavoritedCountRequest) (int64, error)
func (*InteractionService) IsFavorite ¶
func (s *InteractionService) IsFavorite(req *interaction.IsFavoriteRequest) (bool, error)
func (*InteractionService) UnFavorite ¶
func (s *InteractionService) UnFavorite(req *interaction.FavoriteActionRequest, uid int64) error
Click to show internal directories.
Click to hide internal directories.