service

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInsufficientCredit = ai.ErrInsufficientCredit

Functions

This section is empty.

Types

type AnalysisService added in v0.3.2

type AnalysisService interface {
	Analysis(ctx context.Context, uid int64, resume string) (domain.ResumeAnalysis, error)
}

func NewAnalysisService added in v0.3.2

func NewAnalysisService(aiSvc ai.LLMService) AnalysisService

type ExperienceService added in v0.3.1

type ExperienceService interface {
	SaveExperience(ctx context.Context, experience domain.Experience) (int64, error)
	List(ctx context.Context, uid int64) ([]domain.Experience, string, error)
	Delete(ctx context.Context, uid int64, id int64) error
}

func NewExperienceService added in v0.3.1

func NewExperienceService(experience repository.Experience) ExperienceService

type Service

type Service interface {
	SaveProject(ctx context.Context, pro domain.Project) (int64, error)
	// 删除project及其所有关联数据
	DeleteProject(ctx context.Context, uid, id int64) error
	FindProjects(ctx context.Context, uid int64) ([]domain.Project, error)
	ProjectInfo(ctx context.Context, id int64) (domain.Project, error)
	SaveContribution(ctx context.Context, id int64, contribution domain.Contribution) (int64, error)
	// 删除职责
	DeleteContribution(ctx context.Context, id int64) error
	// 保存难点
	SaveDifficulty(ctx context.Context, id int64, difficulty domain.Difficulty) error
	// 删除难点
	DeleteDifficulty(ctx context.Context, id int64) error
}

func NewService

func NewService(repo repository.ResumeProjectRepo) Service

Jump to

Keyboard shortcuts

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