Documentation ¶
Index ¶
- type PersistRepository
- func (p *PersistRepository) AddVideo2Collection(ctx context.Context, collectionId, videoId int64) error
- func (p *PersistRepository) Create(ctx context.Context, collection *model.Collection) error
- func (p *PersistRepository) GetById(ctx context.Context, id int64) (*model.Collection, error)
- func (p *PersistRepository) ListByUserId(ctx context.Context, userId int64, limit, offset int) ([]*model.Collection, error)
- func (p *PersistRepository) RemoveById(ctx context.Context, id int64) error
- func (p *PersistRepository) RemoveVideoFromCollection(ctx context.Context, collectionId, videoId int64) error
- func (p *PersistRepository) Update(ctx context.Context, collection *model.Collection) 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) AddVideo2Collection ¶
func (p *PersistRepository) AddVideo2Collection(ctx context.Context, collectionId, videoId int64) error
func (*PersistRepository) Create ¶
func (p *PersistRepository) Create(ctx context.Context, collection *model.Collection) error
func (*PersistRepository) GetById ¶
func (p *PersistRepository) GetById(ctx context.Context, id int64) (*model.Collection, error)
func (*PersistRepository) ListByUserId ¶
func (p *PersistRepository) ListByUserId(ctx context.Context, userId int64, limit, offset int) ([]*model.Collection, error)
func (*PersistRepository) RemoveById ¶
func (p *PersistRepository) RemoveById(ctx context.Context, id int64) error
func (*PersistRepository) RemoveVideoFromCollection ¶
func (p *PersistRepository) RemoveVideoFromCollection(ctx context.Context, collectionId, videoId int64) error
func (*PersistRepository) Update ¶
func (p *PersistRepository) Update(ctx context.Context, collection *model.Collection) error
Click to show internal directories.
Click to hide internal directories.