evaluation_item_used.go 1.2 KB
package domain

import "time"

// 实际被应用的评估条目
type EvaluationItemUsed struct {
	Id                  int            //id
	CompanyId           int            //公司id
	EvaluationProjectId int            //对应的项目id
	NodeId              int            //填写评估评估节点对应id
	NodeType            string         //填写评估评估节点对应类型同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            // 必填项
	CreatedAt           time.Time      //数据创建时间
	UpdatedAt           time.Time      //数据更新时间
}

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