service

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SkillService

type SkillService interface {
	// Save 保存基本信息
	Save(ctx context.Context, skill domain.Skill) (int64, error)
	// SaveRefs 保存关联信息
	SaveRefs(ctx context.Context, skill domain.Skill) error
	List(ctx context.Context, offset, limit int) ([]domain.Skill, int64, error)
	Info(ctx context.Context, id int64) (domain.Skill, error)
	RefsByLevelIDs(ctx context.Context, ids []int64) ([]domain.SkillLevel, error)
}

func NewSkillService

func NewSkillService(repo repository.SkillRepo) SkillService

Jump to

Keyboard shortcuts

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