Documentation ¶
Index ¶
- type Service
- func (s *Service) CountComment4User(ctx context.Context, userId int64) (int64, error)
- func (s *Service) CountComment4Video(ctx context.Context, videoId int64) (int64, error)
- func (s *Service) CreateComment(ctx context.Context, c *comment.Comment) (cmt *comment.Comment, err error)
- func (s *Service) GetCommentById(ctx context.Context, commentId int64) (cmt *comment.Comment, err error)
- func (s *Service) ListChildComment(ctx context.Context, commentId int64, limit, offset int) ([]*comment.Comment, error)
- func (s *Service) ListComment4Video(ctx context.Context, videoId int64, limit, offset int) ([]*comment.Comment, error)
- func (s *Service) RemoveComment(ctx context.Context, userId, commentId int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func New ¶
func New(comment repoiface.CommentRepository) *Service
func (*Service) CountComment4User ¶
func (*Service) CountComment4Video ¶
func (*Service) CreateComment ¶
func (*Service) GetCommentById ¶
func (*Service) ListChildComment ¶
func (*Service) ListComment4Video ¶
Click to show internal directories.
Click to hide internal directories.