...
|
...
|
@@ -6,6 +6,7 @@ import ( |
|
|
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/application/evaluation_template/command"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/application/factory"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/domain"
|
|
|
"gitlab.fjmaimaimai.com/allied-creation/performance/pkg/utils"
|
|
|
)
|
|
|
|
|
|
type EvaluationTemplateService struct {
|
...
|
...
|
@@ -37,27 +38,34 @@ func (rs *EvaluationTemplateService) Create(in *command.CreateTemplateCommand) ( |
|
|
}
|
|
|
|
|
|
linkNodes := make([]*domain.LinkNode, 0)
|
|
|
|
|
|
sid, _ := utils.NewSnowflakeId()
|
|
|
linkNodes = append(linkNodes, &domain.LinkNode{
|
|
|
Id: sid + 1,
|
|
|
Type: domain.LinkNodeSelfAssessment,
|
|
|
Name: "填写自评反馈",
|
|
|
KpiCycle: domain.KpiCycleDay,
|
|
|
})
|
|
|
linkNodes = append(linkNodes, &domain.LinkNode{
|
|
|
Id: sid + 2,
|
|
|
Type: domain.LinkNodeAllInvite,
|
|
|
Name: "360°邀请",
|
|
|
KpiCycle: domain.KpiCycleDay,
|
|
|
})
|
|
|
linkNodes = append(linkNodes, &domain.LinkNode{
|
|
|
Id: sid + 3,
|
|
|
Type: domain.LinkNodeAllAssessment,
|
|
|
Name: "360°评估",
|
|
|
KpiCycle: domain.KpiCycleDay,
|
|
|
})
|
|
|
linkNodes = append(linkNodes, &domain.LinkNode{
|
|
|
Id: sid + 4,
|
|
|
Type: domain.LinkNodeSuperiorAssessment,
|
|
|
Name: "上级评估",
|
|
|
KpiCycle: domain.KpiCycleDay,
|
|
|
})
|
|
|
linkNodes = append(linkNodes, &domain.LinkNode{
|
|
|
Id: sid + 5,
|
|
|
Type: domain.LinkNodeViewResult,
|
|
|
Name: "绩效结果查看",
|
|
|
KpiCycle: domain.KpiCycleDay,
|
...
|
...
|
|