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 ListCollectionResult ¶ added in v0.1.4
type ListCollectionResult struct {
Data []*collection.Collection
Count int64
}
type ListCollectionVideoResult ¶ added in v0.1.4
Click to show internal directories.
Click to hide internal directories.