evaluation_item_used.go 1.5 KB
package models

import (
	"time"

	"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/domain"
)

// 实际被应用的评估条目
type EvaluationItemUsed struct {
	tableName           struct{}              `comment:"实际被应用的评估条目" pg:"evaluation_item_used"`
	Id                  int                   `pg:",pk"` //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          []*domain.EntryItem   //填写的反馈
	RuleType            int                   `pg:",use_zero"` //评估方式(0评级、1评分)
	Rule                domain.EvaluationRule //评估的选项规则
	EvaluatorId         int                   // 项目评估人ID ( 0=无评估人、-1=HRBP )
	Weight              float64               `pg:",use_zero"` //"权重"
	Required            int                   // 必填项
	CreatedAt           time.Time             //数据创建时间
	UpdatedAt           time.Time             //数据更新时间
}