collectionserviceiface

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CollectionService

type CollectionService interface {
	CreateCollection(ctx context.Context, userId int64, name, description string) error
	GetCollectionById(ctx context.Context, collectionId int64) (*collection.Collection, error)
	RemoveCollection(ctx context.Context, collectionId int64) error
	ListCollection(ctx context.Context, userId int64, limit, offset int) ([]*collection.Collection, error)
	UpdateCollection(ctx context.Context, collectionId int64, name, description string) error
	AddVideo2Collection(ctx context.Context, collectionId, videoId int64) error
	RemoveVideo2Collection(ctx context.Context, collectionId, videoId int64) error
	ListCollectionVideo(ctx context.Context, collectionId int64, pagination *v1.PaginationRequest) ([]int64, error)
}

Jump to

Keyboard shortcuts

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