collectionserviceiface

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 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) (*ListCollectionResult, 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) (*ListCollectionVideoResult, error)
}

type ListCollectionResult added in v0.1.4

type ListCollectionResult struct {
	Data  []*collection.Collection
	Count int64
}

type ListCollectionVideoResult added in v0.1.4

type ListCollectionVideoResult struct {
	Data  []int64
	Count int64
}

Jump to

Keyboard shortcuts

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