Documentation ¶
Index ¶
- type PersistRepository
- func (r *PersistRepository) CountByParentId(ctx context.Context, parentId int64) (int64, error)
- func (r *PersistRepository) CountByUserId(ctx context.Context, userId []int64) ([]*commentserviceiface.CountResult, error)
- func (r *PersistRepository) CountByVideoId(ctx context.Context, videoId []int64) ([]*commentserviceiface.CountResult, error)
- func (r *PersistRepository) CountChildComments(ctx context.Context, commentId int64) (int64, error)
- func (r *PersistRepository) CountParentCommentByVideoId(ctx context.Context, videoId int64) (int64, error)
- func (r *PersistRepository) Create(ctx context.Context, comment *model.Comment) error
- func (r *PersistRepository) GetById(ctx context.Context, commentId int64) (*model.Comment, error)
- func (r *PersistRepository) GetByIdList(ctx context.Context, commentIdList []int64) ([]*model.Comment, error)
- func (r *PersistRepository) ListByVideoId(ctx context.Context, videoId int64, limit, offset int) ([]*model.Comment, error)
- func (r *PersistRepository) ListChildCommentByCommentId(ctx context.Context, commentId int64, limit, offset int) ([]*model.Comment, error)
- func (r *PersistRepository) ListParentCommentByVideoId(ctx context.Context, videoId int64, limit, offset int) ([]*model.Comment, error)
- func (r *PersistRepository) RemoveById(ctx context.Context, commentId int64) error
- func (r *PersistRepository) Update(ctx context.Context, comment *model.Comment) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PersistRepository ¶
type PersistRepository struct { }
func New ¶
func New() *PersistRepository
func (*PersistRepository) CountByParentId ¶ added in v0.1.9
func (*PersistRepository) CountByUserId ¶
func (r *PersistRepository) CountByUserId(ctx context.Context, userId []int64) ([]*commentserviceiface.CountResult, error)
func (*PersistRepository) CountByVideoId ¶
func (r *PersistRepository) CountByVideoId(ctx context.Context, videoId []int64) ([]*commentserviceiface.CountResult, error)
func (*PersistRepository) CountChildComments ¶
func (*PersistRepository) CountParentCommentByVideoId ¶ added in v0.1.9
func (*PersistRepository) GetByIdList ¶
func (*PersistRepository) ListByVideoId ¶
func (*PersistRepository) ListChildCommentByCommentId ¶
func (*PersistRepository) ListParentCommentByVideoId ¶
func (*PersistRepository) RemoveById ¶
func (r *PersistRepository) RemoveById(ctx context.Context, commentId int64) error
Click to show internal directories.
Click to hide internal directories.