collectionrepo

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: GPL-3.0 Imports: 4 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) 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

Jump to

Keyboard shortcuts

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