staff_evaluation.go 1.0 KB
package domain

import "time"

type StaffEvaluationType string

const (
	EvaluationSelf    StaffEvaluationType = "self"    //自评
	EvaluationSuper   StaffEvaluationType = "super"   //上级评估
	EvaluationOverall StaffEvaluationType = "overall" //360评估
)

// 需要填写评估的用户
type StaffEvaluation struct {
	Id                  int                 //id
	EvaluationProjectId int                 //对应的项目id
	CycleId             int64               //对应的周期id
	TargetUserId        int                 //被评估的目标用户
	ExecutorId          int                 //填写评估的用户
	Types               StaffEvaluationType //填写评估对应的类型
	BeginTime           time.Time           //开始时间
	EndTime             time.Time           //截止时间
	CreatedAt           time.Time           //数据创建时间
	UpdatedAt           time.Time           //数据更新时间
}

//用户填写的评估
type StaffEvaluationContent struct {
}