commentrepo

package
v0.1.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

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 (r *PersistRepository) CountByParentId(ctx context.Context, parentId int64) (int64, error)

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 (r *PersistRepository) CountChildComments(ctx context.Context, commentId int64) (int64, error)

func (*PersistRepository) CountParentCommentByVideoId added in v0.1.9

func (r *PersistRepository) CountParentCommentByVideoId(ctx context.Context, videoId int64) (int64, error)

func (*PersistRepository) Create

func (r *PersistRepository) Create(ctx context.Context, comment *model.Comment) error

func (*PersistRepository) GetById

func (r *PersistRepository) GetById(ctx context.Context, commentId int64) (*model.Comment, error)

func (*PersistRepository) GetByIdList

func (r *PersistRepository) GetByIdList(ctx context.Context, commentIdList []int64) ([]*model.Comment, error)

func (*PersistRepository) ListByVideoId

func (r *PersistRepository) ListByVideoId(ctx context.Context, videoId int64, limit, offset int) ([]*model.Comment, error)

func (*PersistRepository) ListChildCommentByCommentId

func (r *PersistRepository) ListChildCommentByCommentId(ctx context.Context, commentId int64, limit, offset int) ([]*model.Comment, error)

func (*PersistRepository) ListParentCommentByVideoId

func (r *PersistRepository) ListParentCommentByVideoId(ctx context.Context, videoId int64, limit, offset int) ([]*model.Comment, error)

func (*PersistRepository) RemoveById

func (r *PersistRepository) RemoveById(ctx context.Context, commentId int64) error

func (*PersistRepository) Update

func (r *PersistRepository) Update(ctx context.Context, comment *model.Comment) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL