Documentation ¶
Index ¶
- type IVideoRepo
- type VideoRepo
- func (r *VideoRepo) FindByID(ctx context.Context, tx *query.Query, id int64) (*model.Video, error)
- func (r *VideoRepo) FindByIdList(ctx context.Context, idList []int64) ([]*model.Video, error)
- func (r *VideoRepo) GetVideoFeed(ctx context.Context, tx *query.Query, userId, latestTime, num int64) ([]*model.Video, error)
- func (r *VideoRepo) GetVideoList(ctx context.Context, tx *query.Query, userId int64, latestTime int64, ...) ([]*model.Video, *infra_dto.PaginationResponse, error)
- func (r *VideoRepo) Save(ctx context.Context, tx *query.Query, v *model.Video) error
- func (r *VideoRepo) UpdateById(ctx context.Context, tx *query.Query, v *model.Video) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IVideoRepo ¶
type IVideoRepo interface { Save(ctx context.Context, tx *query.Query, v *model.Video) error UpdateById(ctx context.Context, tx *query.Query, v *model.Video) (int64, error) FindByID(ctx context.Context, tx *query.Query, id int64) (*model.Video, error) FindByIdList(ctx context.Context, idList []int64) ([]*model.Video, error) GetVideoList( ctx context.Context, tx *query.Query, userId int64, latestTime int64, PaginationRequest *infra_dto.PaginationRequest, ) ([]*model.Video, *infra_dto.PaginationResponse, error) GetVideoFeed(ctx context.Context, tx *query.Query, userId, latestTime, num int64) ([]*model.Video, error) }
type VideoRepo ¶
type VideoRepo struct { }
func (*VideoRepo) FindByIdList ¶ added in v0.1.6
func (*VideoRepo) GetVideoFeed ¶
func (*VideoRepo) GetVideoList ¶
Click to show internal directories.
Click to hide internal directories.