evaluation_item_used.go 1.5 KB
package domain

import (
	"time"
)

// 实际被应用的评估条目
type EvaluationItemUsed struct {
	Id                  int            //id
	CompanyId           int            //公司id
	EvaluationProjectId int            //对应的项目id
	NodeId              int            //填写评估评估节点对应id
	NodeType            int            //填写评估评估节点对应类型,同evaluation_template.go->LinkNode.Type,
	SortBy              int            //排序
	Category            string         //类别
	Name                string         //名称
	PromptTitle         string         //提示项标题
	PromptText          string         //提示项正文
	EntryItems          []*EntryItem   //填写的反馈
	RuleType            int            //评估方式(0评级、1评分)
	Rule                EvaluationRule //评估的选项规则
	Weight              float64        //"权重"
	Required            int            //必填项 同 NodeContent.Required
	EvaluatorId         int            //项目评估人ID ( 0=无评估人、-1=HRBP、 >0 员工的id )
	IndicatorType       int            //指标类型,值同 evaluation_template.go->NodeContent.IndicatorType
	CreatedAt           time.Time      //数据创建时间
	UpdatedAt           time.Time      //数据更新时间
}

type EvaluationItemUsedRepository interface {
	BatchInsert(Item []*EvaluationItemUsed) error
	Find(queryOptions map[string]interface{}) (int, []*EvaluationItemUsed, error)
}