...
|
...
|
@@ -13,25 +13,33 @@ const ( |
|
|
|
|
|
// 项目的评估内容配置
|
|
|
type EvaluationProject struct {
|
|
|
Id int64 `json:"id,string" comment:"ID"`
|
|
|
Name string `json:"name" comment:"名称"`
|
|
|
Describe string `json:"describe" comment:"描述"`
|
|
|
CompanyId int64 `json:"companyId,string" comment:"公司ID"`
|
|
|
CycleId int64 `json:"cycleId,string" comment:"周期ID"`
|
|
|
CreatorId int64 `json:"creatorId,string" comment:"创建人ID"`
|
|
|
State int `json:"state" comment:"状态(0待完成配置、1待启用、2启用、3结束)"`
|
|
|
HrBp int `json:"hrBp" comment:"HR角色权限"`
|
|
|
Pmp int `json:"pmp" comment:"PM角色权限"`
|
|
|
PmpIds []string `json:"pmpIds" comment:"项目管理员ID"`
|
|
|
Recipients []string `json:"recipients" comment:"被评估人ID"`
|
|
|
Template *EvaluationTemplate `json:"template" comment:"评估模板"`
|
|
|
BeginTime time.Time `json:"beginTime" comment:"项目起始时间"`
|
|
|
EndTime time.Time `json:"endTime" comment:"项目截至时间"`
|
|
|
CreatedAt time.Time `json:"createdAt" comment:"创建时间"`
|
|
|
UpdatedAt time.Time `json:"updatedAt" comment:"更新时间"`
|
|
|
DeletedAt *time.Time `json:"deletedAt" comment:"删除时间"`
|
|
|
Id int64 `json:"id,string" comment:"ID"`
|
|
|
Name string `json:"name" comment:"名称"`
|
|
|
Describe string `json:"describe" comment:"描述"`
|
|
|
CompanyId int64 `json:"companyId,string" comment:"公司ID"`
|
|
|
CycleId int64 `json:"cycleId,string" comment:"周期ID"`
|
|
|
CreatorId int64 `json:"creatorId,string" comment:"创建人ID"`
|
|
|
State int `json:"state" comment:"状态(0待完成配置、1待启用、2启用、3结束)"`
|
|
|
SummaryState ProjectSummaryState `json:"summaryState" comment:"周期评估是否下发"`
|
|
|
HrBp int `json:"hrBp" comment:"HR角色权限"`
|
|
|
Pmp int `json:"pmp" comment:"PM角色权限"`
|
|
|
PmpIds []string `json:"pmpIds" comment:"项目管理员ID"`
|
|
|
Recipients []string `json:"recipients" comment:"被评估人ID"`
|
|
|
Template *EvaluationTemplate `json:"template" comment:"评估模板"`
|
|
|
BeginTime time.Time `json:"beginTime" comment:"项目起始时间"`
|
|
|
EndTime time.Time `json:"endTime" comment:"项目截至时间"`
|
|
|
CreatedAt time.Time `json:"createdAt" comment:"创建时间"`
|
|
|
UpdatedAt time.Time `json:"updatedAt" comment:"更新时间"`
|
|
|
DeletedAt *time.Time `json:"deletedAt" comment:"删除时间"`
|
|
|
}
|
|
|
|
|
|
type ProjectSummaryState int
|
|
|
|
|
|
const (
|
|
|
ProjectSummaryStateNo int = 0 //未下发
|
|
|
ProjectSummaryStateYes int = 1 //已经下发
|
|
|
)
|
|
|
|
|
|
type EvaluationProjectRepository interface {
|
|
|
Insert(project *EvaluationProject) (*EvaluationProject, error)
|
|
|
Remove(project *EvaluationProject) (*EvaluationProject, error)
|
...
|
...
|
|