...
|
...
|
@@ -17,11 +17,6 @@ const ( |
|
|
LinkNodeAllAssessment int = 3 // 环节-360°评估
|
|
|
LinkNodeSuperiorAssessment int = 4 // 环节-上级评估
|
|
|
LinkNodeViewResult int = 5 // 环节-绩效结果查看
|
|
|
|
|
|
//LinkNodeAssessment int = 1 // 环节-评估(自评、360°评估、上级评估)
|
|
|
//LinkNodeAllInvite int = 2 // 环节-360°邀请
|
|
|
//LinkNodeViewResult int = 3 // 环节-绩效结果查看
|
|
|
|
|
|
)
|
|
|
|
|
|
type EntryItem struct {
|
...
|
...
|
@@ -42,17 +37,7 @@ type NodeContent struct { |
|
|
EntryItems []*EntryItem `json:"entryItems" comment:"填写项"`
|
|
|
}
|
|
|
|
|
|
//// NodeAllInvite 360°邀请
|
|
|
//type NodeAllInvite struct {
|
|
|
// ParentDifferentIds []string `json:"parentDifferentIds" comment:"不同上级同事ID"`
|
|
|
// ParentSameIds []string `json:"parentSameIds" comment:"相同上级同事ID"`
|
|
|
//}
|
|
|
|
|
|
//// NodeKpiResult 绩效结果查看
|
|
|
//type NodeKpiResult struct {
|
|
|
//}
|
|
|
|
|
|
// 评估流程、环节
|
|
|
// LinkNode 评估流程、环节
|
|
|
type LinkNode struct {
|
|
|
Id int64 `json:"id,string" comment:"环节ID"`
|
|
|
Type int `json:"type" comment:"环节类型"`
|
...
|
...
|
@@ -64,7 +49,7 @@ type LinkNode struct { |
|
|
KpiCycle int `json:"kpiCycle" comment:"考核周期(1日、2周、3月)"`
|
|
|
}
|
|
|
|
|
|
// 评估模板
|
|
|
// EvaluationTemplate 评估模板
|
|
|
type EvaluationTemplate struct {
|
|
|
Id int64 `json:"id,string" comment:"ID"`
|
|
|
Name string `json:"name" comment:"名称"`
|
...
|
...
|
@@ -78,14 +63,6 @@ type EvaluationTemplate struct { |
|
|
DeletedAt *time.Time `json:"deletedAt" comment:"删除时间"`
|
|
|
}
|
|
|
|
|
|
//type EvaluationLink struct {
|
|
|
// NodeSelfAssessment *LinkNode `json:"nodeSelfAssessment" comment:"填写反馈自评"`
|
|
|
// NodeAllInvite *LinkNode `json:"nodeAllInvite" comment:"360°邀请"`
|
|
|
// NodeAllAssessment *LinkNode `json:"nodeAllAssessment" comment:"360°评估"`
|
|
|
// NodeSuperiorAssessment *LinkNode `json:"nodeSuperiorAssessment" comment:"上级评估"`
|
|
|
// NodeViewResult *LinkNode `json:"nodeViewResult" comment:"绩效结果查看"`
|
|
|
//}
|
|
|
|
|
|
type EvaluationTemplateRepository interface {
|
|
|
Insert(template *EvaluationTemplate) (*EvaluationTemplate, error)
|
|
|
Remove(template *EvaluationTemplate) (*EvaluationTemplate, error)
|
...
|
...
|
|