Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SkillRepo ¶
type SkillRepo interface { // Save 管理端接口 // 和 Update 返回值为 skill 的 id Save(ctx context.Context, skill domain.Skill) (int64, error) SaveRefs(ctx context.Context, skill domain.Skill) error // List 列表 List(ctx context.Context, offset, limit int) ([]domain.Skill, error) // Info 详情 Info(ctx context.Context, id int64) (domain.Skill, error) Count(ctx context.Context) (int64, error) RefsByLevelIDs(ctx context.Context, ids []int64) ([]domain.SkillLevel, error) LevelInfo(ctx context.Context, id int64) (domain.SkillLevel, error) }
func NewSkillRepo ¶
func NewSkillRepo(skillDao dao.SkillDAO, skillCache cache.SkillCache) SkillRepo
Click to show internal directories.
Click to hide internal directories.