repository

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL