Documentation ¶
Index ¶
- type IcfRepo
- type KeywordResponse
- type ListKeywordParam
- type ListScaleParam
- type ListTreatmentFilter
- type ListTreatmentparamResponseItem
- type ScaleResponse
- type System
- func (p *System) CreateIcfClassify(ctx context.Context, model *system.ICFClassify) error
- func (p *System) CreateIcfClassifyScaleKeywordBind(ctx context.Context, icfClassifyID int64, scaleID int64, keywordIdList []int64) error
- func (p *System) CreateTreatmentSuggestionTemplate(ctx context.Context, model *system.TreatmentSuggestionTemplate) error
- func (p *System) DeleteIcfClassify(ctx context.Context, id int64) error
- func (p *System) DeleteIcfClassifyScaleKeywordBind(ctx context.Context, idList []int64) error
- func (p *System) DeleteTreatmentSuggestionTemplate(ctx context.Context, id int64) error
- func (p *System) GetIcfClassifyByID(ctx context.Context, id int64) (*system.ICFClassify, error)
- func (p *System) GetTreatmentSuggestionTemplateByID(ctx context.Context, id int64) (*system.TreatmentSuggestionTemplate, error)
- func (p *System) ListIcfClassify(ctx context.Context, page, perPage int32, info string) ([]system.ICFClassify, int64, error)
- func (p *System) ListIcfClassifyScaleKeywordBind(ctx context.Context, icfClassifyID int64) ([]system.ICFClassifyScaleKeywordBind, error)
- func (s *System) ListKeyword(ctx context.Context, param *ListKeywordParam) ([]KeywordResponse, error)
- func (s *System) ListScaleInfo(ctx context.Context, param *ListScaleParam) (*reqscale.PageResponseData[[]ScaleResponse], error)
- func (s *System) ListTreatment(ctx context.Context, param *reqpatient.ListParam[ListTreatmentFilter]) (*reqpatient.PageResponse[[]ListTreatmentparamResponseItem], error)
- func (p *System) ListTreatmentSuggestionTemplate(ctx context.Context, page, perPage int32) ([]system.TreatmentSuggestionTemplate, int64, error)
- func (p *System) UpdateIcfClassify(ctx context.Context, model *system.ICFClassify) error
- func (p *System) UpdateTreatmentSuggestionTemplate(ctx context.Context, model *system.TreatmentSuggestionTemplate) error
- type TreatmentSuggestionTemplateRepo
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 ListScaleParam ¶
type ListTreatmentFilter ¶
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 System ¶
type System struct {
// contains filtered or unexported fields
}
func NewSystem ¶
func NewSystem(treatmentSuggestionTemplateRepo TreatmentSuggestionTemplateRepo, icfRepo IcfRepo) *System
func (*System) CreateIcfClassify ¶
func (*System) CreateIcfClassifyScaleKeywordBind ¶
func (*System) CreateTreatmentSuggestionTemplate ¶
func (*System) DeleteIcfClassify ¶
func (*System) DeleteIcfClassifyScaleKeywordBind ¶
func (*System) DeleteTreatmentSuggestionTemplate ¶
func (*System) GetIcfClassifyByID ¶
func (*System) GetTreatmentSuggestionTemplateByID ¶
func (*System) ListIcfClassify ¶
func (*System) ListIcfClassifyScaleKeywordBind ¶
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) ListTreatment ¶
func (s *System) ListTreatment(ctx context.Context, param *reqpatient.ListParam[ListTreatmentFilter]) (*reqpatient.PageResponse[[]ListTreatmentparamResponseItem], error)
func (*System) ListTreatmentSuggestionTemplate ¶
func (*System) UpdateIcfClassify ¶
func (*System) UpdateTreatmentSuggestionTemplate ¶
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) }
Click to show internal directories.
Click to hide internal directories.