正在显示
3 个修改的文件
包含
32 行增加
和
0 行删除
| @@ -11,6 +11,7 @@ const ( | @@ -11,6 +11,7 @@ const ( | ||
| 11 | ProjectStateDisable int = 3 // 项目状态-停用 | 11 | ProjectStateDisable int = 3 // 项目状态-停用 |
| 12 | ) | 12 | ) |
| 13 | 13 | ||
| 14 | +// 项目的评估内容配置 | ||
| 14 | type EvaluationProject struct { | 15 | type EvaluationProject struct { |
| 15 | Id int64 `json:"id,string" comment:"ID"` | 16 | Id int64 `json:"id,string" comment:"ID"` |
| 16 | Name string `json:"name" comment:"名称"` | 17 | Name string `json:"name" comment:"名称"` |
| @@ -55,6 +55,7 @@ type NodeAllInvite struct { | @@ -55,6 +55,7 @@ type NodeAllInvite struct { | ||
| 55 | //type NodeKpiResult struct { | 55 | //type NodeKpiResult struct { |
| 56 | //} | 56 | //} |
| 57 | 57 | ||
| 58 | +// 评估流程、环节 | ||
| 58 | type LinkNode struct { | 59 | type LinkNode struct { |
| 59 | Id int64 `json:"id,string" comment:"环节ID"` | 60 | Id int64 `json:"id,string" comment:"环节ID"` |
| 60 | Type int `json:"type" comment:"环节类型"` | 61 | Type int `json:"type" comment:"环节类型"` |
| @@ -67,6 +68,7 @@ type LinkNode struct { | @@ -67,6 +68,7 @@ type LinkNode struct { | ||
| 67 | KpiCycle int `json:"state" comment:"考核周期(0日、1周、2月)"` | 68 | KpiCycle int `json:"state" comment:"考核周期(0日、1周、2月)"` |
| 68 | } | 69 | } |
| 69 | 70 | ||
| 71 | +// 评估模板 | ||
| 70 | type EvaluationTemplate struct { | 72 | type EvaluationTemplate struct { |
| 71 | Id int64 `json:"id,string" comment:"ID"` | 73 | Id int64 `json:"id,string" comment:"ID"` |
| 72 | Name string `json:"name" comment:"名称"` | 74 | Name string `json:"name" comment:"名称"` |
pkg/domain/staff_evaluation.go
0 → 100644
| 1 | +package domain | ||
| 2 | + | ||
| 3 | +import "time" | ||
| 4 | + | ||
| 5 | +type StaffEvaluationType string | ||
| 6 | + | ||
| 7 | +const ( | ||
| 8 | + EvaluationSelf StaffEvaluationType = "self" //自评 | ||
| 9 | + EvaluationSuper StaffEvaluationType = "super" //上级评估 | ||
| 10 | + EvaluationOverall StaffEvaluationType = "overall" //360评估 | ||
| 11 | +) | ||
| 12 | + | ||
| 13 | +// 需要填写评估的用户 | ||
| 14 | +type StaffEvaluation struct { | ||
| 15 | + Id int //id | ||
| 16 | + EvaluationProjectId int //对应的项目id | ||
| 17 | + CycleId int64 //对应的周期id | ||
| 18 | + TargetUserId int //被评估的目标用户 | ||
| 19 | + ExecutorId int //填写评估的用户 | ||
| 20 | + Types StaffEvaluationType //填写评估对应的类型 | ||
| 21 | + BeginTime time.Time //开始时间 | ||
| 22 | + EndTime time.Time //截止时间 | ||
| 23 | + CreatedAt time.Time //数据创建时间 | ||
| 24 | + UpdatedAt time.Time //数据更新时间 | ||
| 25 | +} | ||
| 26 | + | ||
| 27 | +//用户填写的评估 | ||
| 28 | +type StaffEvaluationContent struct { | ||
| 29 | +} |
-
请 注册 或 登录 后发表评论