Documentation
¶
Index ¶
Constants ¶
View Source
const ( CaseBiz = "case" CaseSetBiz = "caseSet" QuestionBiz = "question" QuestionSetBiz = "questionSet" )
Variables ¶
View Source
var ErrRecordNotFound = dao.ErrRecordNotFound
Functions ¶
This section is empty.
Types ¶
type InteractiveRepository ¶
type InteractiveRepository interface { IncrViewCnt(ctx context.Context, biz string, bizId int64) error LikeToggle(ctx context.Context, biz string, id int64, uid int64) error CollectToggle(ctx context.Context, biz string, id int64, uid int64) error Get(ctx context.Context, biz string, id int64) (domain.Interactive, error) GetByIds(ctx context.Context, biz string, uid int64, ids []int64) ([]domain.Interactive, error) Liked(ctx context.Context, biz string, id int64, uid int64) (bool, error) Collected(ctx context.Context, biz string, id int64, uid int64) (bool, error) // 保存收藏夹 SaveCollection(ctx context.Context, collection domain.Collection) (int64, error) // 删除收藏夹 DeleteCollection(ctx context.Context, uid, collectionId int64) error // 收藏夹列表 CollectionList(ctx context.Context, uid int64, offset, limit int) ([]domain.Collection, error) // CollectionInfo 收藏夹收藏记录 CollectionInfo(ctx context.Context, uid, collectionId int64, offset, limit int) ([]domain.CollectionRecord, error) // MoveCollection 转移收藏夹 MoveCollection(ctx context.Context, biz string, bizid, uid, collectionId int64) error }
func NewCachedInteractiveRepository ¶
func NewCachedInteractiveRepository(interactiveDao dao.InteractiveDAO) InteractiveRepository
Click to show internal directories.
Click to hide internal directories.