Documentation
¶
Index ¶
- type InteractionService
- func (s *InteractionService) CountComments(req *interaction.CommentCountRequest, times int) (count int64, err error)
- func (s *InteractionService) CreateComment(req *interaction.CommentActionRequest, userId int64) (*interaction.Comment, error)
- func (s *InteractionService) DeleteComment(req *interaction.CommentActionRequest, userId int64) (*interaction.Comment, error)
- func (s *InteractionService) Dislike(req *interaction.FavoriteActionRequest, userID int64) error
- func (s *InteractionService) FavoriteList(req *interaction.FavoriteListRequest) ([]*video.Video, error)
- func (s *InteractionService) GetComments(req *interaction.CommentListRequest, times int) ([]*interaction.Comment, error)
- func (s *InteractionService) GetUserFavoriteCount(req *interaction.UserFavoriteCountRequest) (int64, error)
- func (s *InteractionService) GetUserTotalFavorited(req *interaction.UserTotalFavoritedRequest) (int64, error)
- func (s *InteractionService) GetVideoFavoritedCount(req *interaction.VideoFavoritedCountRequest) (int64, error)
- func (s *InteractionService) IsFavorite(req *interaction.IsFavoriteRequest) (bool, error)
- func (s *InteractionService) Like(req *interaction.FavoriteActionRequest, userID int64) error
- func (s *InteractionService) MatchSensitiveWords(text string) (bool, error)
- type ResponseBody
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
NewInteractionService new interactionService
func (*InteractionService) CountComments ¶
func (s *InteractionService) CountComments(req *interaction.CommentCountRequest, times int) (count int64, err error)
func (*InteractionService) CreateComment ¶
func (s *InteractionService) CreateComment(req *interaction.CommentActionRequest, userId int64) (*interaction.Comment, error)
CreateComment create comment
func (*InteractionService) DeleteComment ¶
func (s *InteractionService) DeleteComment(req *interaction.CommentActionRequest, userId int64) (*interaction.Comment, error)
DeleteComment delete comment
func (*InteractionService) Dislike ¶
func (s *InteractionService) Dislike(req *interaction.FavoriteActionRequest, userID int64) error
func (*InteractionService) FavoriteList ¶
func (s *InteractionService) FavoriteList(req *interaction.FavoriteListRequest) ([]*video.Video, error)
func (*InteractionService) GetComments ¶
func (s *InteractionService) GetComments(req *interaction.CommentListRequest, times int) ([]*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) GetVideoFavoritedCount ¶
func (s *InteractionService) GetVideoFavoritedCount(req *interaction.VideoFavoritedCountRequest) (int64, error)
func (*InteractionService) IsFavorite ¶
func (s *InteractionService) IsFavorite(req *interaction.IsFavoriteRequest) (bool, error)
func (*InteractionService) Like ¶
func (s *InteractionService) Like(req *interaction.FavoriteActionRequest, userID int64) error
func (*InteractionService) MatchSensitiveWords ¶
func (s *InteractionService) MatchSensitiveWords(text string) (bool, error)
type ResponseBody ¶
Click to show internal directories.
Click to hide internal directories.