Documentation ¶
Index ¶
- Variables
- type PublishRepo
- type PublishUseCase
- func (u *PublishUseCase) FeedList(ctx context.Context, latestTime string) (int64, []*Video, error)
- func (u *PublishUseCase) GetPublishList(ctx context.Context, userId uint32) ([]*Video, error)
- func (u *PublishUseCase) GetVideoListByVideoIds(ctx context.Context, userId uint32, videoIds []uint32) ([]*Video, error)
- func (u *PublishUseCase) PublishAction(ctx context.Context, fileBytes []byte, title string) error
- type User
- type Video
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewPublishUseCase)
ProviderSet is data providers.
Functions ¶
This section is empty.
Types ¶
type PublishRepo ¶
type PublishRepo interface { GetVideosByUserId(context.Context, uint32) ([]*Video, error) UploadAll(context.Context, []byte, string) error GetFeedList(context.Context, string) (int64, []*Video, error) GetVideosByVideoIds(context.Context, uint32, []uint32) ([]*Video, error) InitUpdateFavoriteQueue() InitUpdateCommentQueue() }
type PublishUseCase ¶
type PublishUseCase struct {
// contains filtered or unexported fields
}
func NewPublishUseCase ¶
func NewPublishUseCase(repo PublishRepo, logger log.Logger) *PublishUseCase
func (*PublishUseCase) GetPublishList ¶
func (*PublishUseCase) GetVideoListByVideoIds ¶
func (*PublishUseCase) PublishAction ¶
Click to show internal directories.
Click to hide internal directories.