审查视图

pkg/infrastructure/pg/models/evaluation_item_used.go 1.6 KB
tangxvhui authored
1 2 3 4 5 6 7 8 9 10
package models

import (
	"time"

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

// 实际被应用的评估条目
type EvaluationItemUsed struct {
tangxvhui authored
11 12
	tableName           struct{}              `comment:"实际被应用的评估条目" pg:"evaluation_item_used"`
	Id                  int                   `pg:",pk"` //id
tangxvhui authored
13 14 15
	CompanyId           int                   //公司id
	EvaluationProjectId int                   //对应的项目id
	NodeId              int                   //填写评估评估节点对应id
tangxvhui authored
16
	NodeType            int                   //填写评估评估节点对应类型同evaluation_template.go->LinkNode.Type,
tangxvhui authored
17
	SortBy              int                   `pg:",use_zero"` //排序
tangxvhui authored
18 19 20 21
	Category            string                //类别
	Name                string                //名称
	PromptTitle         string                //提示项标题
	PromptText          string                //提示项正文
tangxvhui authored
22
	EntryItems          []*domain.EntryItem   //填写的反馈
tangxvhui authored
23
	RuleType            int                   `pg:",use_zero"` //评估方式(0评级、1评分)
tangxvhui authored
24
	Rule                domain.EvaluationRule //评估的选项规则
tangxvhui authored
25
	EvaluatorId         int                   // 项目评估人ID ( 0=无评估人、-1=HRBP )
26
	IndicatorType       int                   `pg:",use_zero"` // 指标规则
tangxvhui authored
27
	Weight              float64               `pg:",use_zero"` //"权重"
tangxvhui authored
28 29 30 31
	Required            int                   // 必填项
	CreatedAt           time.Time             //数据创建时间
	UpdatedAt           time.Time             //数据更新时间
}