Merge branch 'test' into dev-tangxvhui
正在显示
3 个修改的文件
包含
9 行增加
和
8 行删除
| 1 | package models | 1 | package models |
| 2 | 2 | ||
| 3 | import ( | 3 | import ( |
| 4 | - "gitlab.fjmaimaimai.com/allied-creation/performance/pkg/domain" | ||
| 5 | "time" | 4 | "time" |
| 5 | + | ||
| 6 | + "gitlab.fjmaimaimai.com/allied-creation/performance/pkg/domain" | ||
| 6 | ) | 7 | ) |
| 7 | 8 | ||
| 8 | type EvaluationProject struct { | 9 | type EvaluationProject struct { |
| @@ -14,8 +15,8 @@ type EvaluationProject struct { | @@ -14,8 +15,8 @@ type EvaluationProject struct { | ||
| 14 | CycleId int64 `comment:"周期ID"` | 15 | CycleId int64 `comment:"周期ID"` |
| 15 | CreatorId int64 `comment:"创建人ID"` | 16 | CreatorId int64 `comment:"创建人ID"` |
| 16 | State int `comment:"状态(0待完成配置、1待启用、2启用、3停用)" pg:",use_zero"` | 17 | State int `comment:"状态(0待完成配置、1待启用、2启用、3停用)" pg:",use_zero"` |
| 17 | - HrBp int `comment:"HR角色权限"` | ||
| 18 | - Pmp int `comment:"PM角色权限"` | 18 | + HrBp int `pg:",use_zero" comment:"HR角色权限"` |
| 19 | + Pmp int `pg:",use_zero" comment:"PM角色权限"` | ||
| 19 | PmpIds []string `comment:"项目管理员ID"` | 20 | PmpIds []string `comment:"项目管理员ID"` |
| 20 | Recipients []string `comment:"被评估人ID"` | 21 | Recipients []string `comment:"被评估人ID"` |
| 21 | Template *domain.EvaluationTemplate `comment:"评估模板"` | 22 | Template *domain.EvaluationTemplate `comment:"评估模板"` |
| @@ -12,16 +12,16 @@ type StaffAssess struct { | @@ -12,16 +12,16 @@ type StaffAssess struct { | ||
| 12 | Id int `pg:",pk"` //id | 12 | Id int `pg:",pk"` //id |
| 13 | CompanyId int `comment:"公司id"` //公司id | 13 | CompanyId int `comment:"公司id"` //公司id |
| 14 | EvaluationProjectId int `comment:"对应的项目id"` //对应的项目id | 14 | EvaluationProjectId int `comment:"对应的项目id"` //对应的项目id |
| 15 | - EvaluationProjectName string | 15 | + EvaluationProjectName string `comment:"对应的项目名称"` |
| 16 | CycleId int64 `comment:"对应的周期id"` //对应的周期id | 16 | CycleId int64 `comment:"对应的周期id"` //对应的周期id |
| 17 | - CycleName string | ||
| 18 | - StaffAssessTaskId int | 17 | + CycleName string `comment:"对应的周期名称"` |
| 18 | + StaffAssessTaskId int `comment:"评估任务的id"` | ||
| 19 | TargetUser domain.StaffDesc `comment:"被评估的目标用户"` //被评估的目标用户 | 19 | TargetUser domain.StaffDesc `comment:"被评估的目标用户"` //被评估的目标用户 |
| 20 | TargetDepartment []domain.StaffDepartment `comment:"被评估的用户所在的部门"` //被评估的用户所在的部门 | 20 | TargetDepartment []domain.StaffDepartment `comment:"被评估的用户所在的部门"` //被评估的用户所在的部门 |
| 21 | Executor domain.StaffDesc `comment:"填写评估的用户"` //填写评估的用户 | 21 | Executor domain.StaffDesc `comment:"填写评估的用户"` //填写评估的用户 |
| 22 | Types string `comment:"填写评估对应的类型"` //填写评估对应的类型 | 22 | Types string `comment:"填写评估对应的类型"` //填写评估对应的类型 |
| 23 | LinkNodeId int `comment:"评估环节id"` | 23 | LinkNodeId int `comment:"评估环节id"` |
| 24 | - LinkNodeName string | 24 | + LinkNodeName string `comment:"评估环节名称"` |
| 25 | Status string `comment:"评估的填写状态"` //评估的填写状态 | 25 | Status string `comment:"评估的填写状态"` //评估的填写状态 |
| 26 | BeginTime time.Time `comment:"开始时间"` //开始时间 | 26 | BeginTime time.Time `comment:"开始时间"` //开始时间 |
| 27 | EndTime time.Time `comment:"截止时间"` //截止时间 | 27 | EndTime time.Time `comment:"截止时间"` //截止时间 |
| @@ -22,7 +22,7 @@ type StaffAssessContent struct { | @@ -22,7 +22,7 @@ type StaffAssessContent struct { | ||
| 22 | ReteResult string //评估的结果 | 22 | ReteResult string //评估的结果 |
| 23 | Rule domain.EvaluationRule | 23 | Rule domain.EvaluationRule |
| 24 | Remark []domain.AssessContemtRemark | 24 | Remark []domain.AssessContemtRemark |
| 25 | - Weight int //权重 | 25 | + Weight int `pg:",use_zero"` //权重 |
| 26 | CreatedAt time.Time //数据创建时间 | 26 | CreatedAt time.Time //数据创建时间 |
| 27 | UpdatedAt time.Time //数据更新时间 | 27 | UpdatedAt time.Time //数据更新时间 |
| 28 | DeletedAt *time.Time | 28 | DeletedAt *time.Time |
-
请 注册 或 登录 后发表评论