collectionserviceiface

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

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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, userId, collectionId, videoId int64) error
	RemoveVideo2Collection(ctx context.Context, userId, collectionId, videoId int64) error
	ListCollectionVideo(ctx context.Context, collectionId int64, pagination *v1.PaginationRequest) (*ListCollectionVideoResult, error)
	ListCollectedVideoByGiven(ctx context.Context, userId int64, videoIdList []int64) ([]int64, error)
	GenerateDefaultCollection(ctx context.Context, userId int64) error
	CountCollectedNumber4Video(ctx context.Context, videoId []int64) ([]*CountResult, error)
}

type CountResult added in v0.1.11

type CountResult struct {
	Id    int64
	Count int64
}

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