system

package
v0.0.0-...-c38fcd0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IcfRepo

type IcfRepo interface {
	CreateIcfClassify(ctx context.Context, model *system.ICFClassify) error
	UpdateIcfClassifyByid(ctx context.Context, id int64, model *system.ICFClassify, columns ...jet.Column) error
	GetIcfClassifyByCodeOrName(ctx context.Context, name string) ([]system.ICFClassify, error)
	DeleteIcfClassifyByid(ctx context.Context, id int64) error
	GetIcfClassifyByID(ctx context.Context, id int64) (*system.ICFClassify, error)
	ListIcfClassify(ctx context.Context, page, perPage int32, info string) ([]system.ICFClassify, int64, error)
	ListIcfClassifyScaleKeywordBind(ctx context.Context, icfClassifyID int64) ([]system.ICFClassifyScaleKeywordBind, error)
	CreateIcfClassifyScaleKeywordBind(ctx context.Context, icfClassifyID int64, scaleID int64, keywordIdList []int64) error
	DeleteIcfClassifyScaleKeywordBind(ctx context.Context, idList []int64) error
}

type KeywordResponse

type KeywordResponse struct {
	ID        mmodels.Int64Str `json:"id"`
	Name      string           `json:"name"`
	Status    int8             `json:"status"`
	VersionID mmodels.Int64Str `json:"version_id"`
	Code      string           `json:"code"`
	CreatedBy string           `json:"created_by"`
	CreatedAt *ztime.Time      `json:"created_at"`
	Score     int32            `json:"max_score"`
}

type ListKeywordParam

type ListKeywordParam struct {
	ScaleID       int64
	VersionID     int64
	KeywordIDList []int64
	Name          string
	Status        base.AbleStatusType
}

type ListScaleParam

type ListScaleParam struct {
	ScaleIDList []int64
	ScaleTypeID int64
	Name        string
	Status      base.AbleStatusType
	Page        int32
	PageSize    int32
}

type ListTreatmentFilter

type ListTreatmentFilter struct {
	Key         string   `json:"key"`
	ID          []string `json:"id"`
	Name        []string `json:"name"`
	Type        []string `json:"type"`
	TreatType   []string `json:"treatType"`
	CreateByArr []string `json:"createByArr"`
}

type ListTreatmentparamResponseItem

type ListTreatmentparamResponseItem struct {
	ID          string `json:"id"`
	Name        string `json:"name"`
	Type        string `json:"type"`
	TreatType   string `json:"treatType"`
	CreateBy    string `json:"createBy"`
	FuncClass   string `json:"funcClass"`
	Description string `json:"description"`
	CreateTime  string `json:"createTime"`
	UpdateTime  string `json:"updateTime"`
}

type ScaleResponse

type ScaleResponse struct {
	ScaleID   mmodels.Int64Str `json:"scale_id"`
	ScaleName string           `json:"scale_name"`
	Status    int8             `json:"status"`
	CreatedBy string           `json:"created_by"`
	CreatedAt *ztime.Time      `json:"created_at"`
}

type System

type System struct {
	// contains filtered or unexported fields
}

func NewSystem

func NewSystem(treatmentSuggestionTemplateRepo TreatmentSuggestionTemplateRepo, icfRepo IcfRepo) *System

func (*System) CreateIcfClassify

func (p *System) CreateIcfClassify(ctx context.Context, model *system.ICFClassify) error

func (*System) CreateIcfClassifyScaleKeywordBind

func (p *System) CreateIcfClassifyScaleKeywordBind(ctx context.Context, icfClassifyID int64, scaleID int64, keywordIdList []int64) error

func (*System) CreateTreatmentSuggestionTemplate

func (p *System) CreateTreatmentSuggestionTemplate(ctx context.Context, model *system.TreatmentSuggestionTemplate) error

func (*System) DeleteIcfClassify

func (p *System) DeleteIcfClassify(ctx context.Context, id int64) error

func (*System) DeleteIcfClassifyScaleKeywordBind

func (p *System) DeleteIcfClassifyScaleKeywordBind(ctx context.Context, idList []int64) error

func (*System) DeleteTreatmentSuggestionTemplate

func (p *System) DeleteTreatmentSuggestionTemplate(ctx context.Context, id int64) error

func (*System) GetIcfClassifyByID

func (p *System) GetIcfClassifyByID(ctx context.Context, id int64) (*system.ICFClassify, error)

func (*System) GetTreatmentSuggestionTemplateByID

func (p *System) GetTreatmentSuggestionTemplateByID(ctx context.Context, id int64) (*system.TreatmentSuggestionTemplate, error)

func (*System) ListIcfClassify

func (p *System) ListIcfClassify(ctx context.Context, page, perPage int32, info string) ([]system.ICFClassify, int64, error)

func (*System) ListIcfClassifyScaleKeywordBind

func (p *System) ListIcfClassifyScaleKeywordBind(ctx context.Context, icfClassifyID int64) ([]system.ICFClassifyScaleKeywordBind, error)

func (*System) ListKeyword

func (s *System) ListKeyword(ctx context.Context, param *ListKeywordParam) ([]KeywordResponse, error)

func (*System) ListScaleInfo

func (s *System) ListScaleInfo(ctx context.Context, param *ListScaleParam) (*reqscale.PageResponseData[[]ScaleResponse], error)

func (*System) ListTreatmentSuggestionTemplate

func (p *System) ListTreatmentSuggestionTemplate(ctx context.Context, page, perPage int32) ([]system.TreatmentSuggestionTemplate, int64, error)

func (*System) UpdateIcfClassify

func (p *System) UpdateIcfClassify(ctx context.Context, model *system.ICFClassify) error

func (*System) UpdateTreatmentSuggestionTemplate

func (p *System) UpdateTreatmentSuggestionTemplate(ctx context.Context, model *system.TreatmentSuggestionTemplate) error

type TreatmentSuggestionTemplateRepo

type TreatmentSuggestionTemplateRepo interface {
	GetTreatmentSuggestionTemplateByID(ctx context.Context, id int64) (*system.TreatmentSuggestionTemplate, error)
	CreateTreatmentSuggestionTemplate(ctx context.Context, model *system.TreatmentSuggestionTemplate) error
	UpdateTreatmentSuggestionTemplateByid(ctx context.Context, id int64, model *system.TreatmentSuggestionTemplate, columns ...jet.Column) error
	GetTreatmentSuggestionTemplateByName(ctx context.Context, name string) (*system.TreatmentSuggestionTemplate, error)
	DeleteTreatmentSuggestionTemplateByid(ctx context.Context, id int64) error
	ListTreatmentSuggestionTemplate(ctx context.Context, page, perPage int32, name string) ([]system.TreatmentSuggestionTemplate, int64, error)
	ListTreatmentSuggestionTemplateByScaleID(ctx context.Context, scaleID int64) ([]system.TreatmentSuggestionTemplate, error)
}

Jump to

Keyboard shortcuts

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