作者 tangxvhui

调整定义

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 // 任务阶段 9 // 任务阶段
@@ -12,19 +13,19 @@ type TaskRecord struct { @@ -12,19 +13,19 @@ type TaskRecord struct {
12 CompanyId int `comment:"公司ID"` 13 CompanyId int `comment:"公司ID"`
13 StaffAssessId int `comment:"每日评估的ID"` 14 StaffAssessId int `comment:"每日评估的ID"`
14 TaskId int `comment:"任务ID"` 15 TaskId int `comment:"任务ID"`
15 - TaskCategory string `comment:"任务类别"`  
16 - TaskName string `comment:"任务名称"`  
17 - TaskAlias string `comment:"任务别名"` 16 + TaskCategory string `comment:"任务类别" pg:",use_zero"`
  17 + TaskName string `comment:"任务名称" pg:",use_zero"`
  18 + TaskAlias string `comment:"任务别名" pg:",use_zero"`
18 TaskLeader domain.TaskLeader `comment:"任务负责人"` 19 TaskLeader domain.TaskLeader `comment:"任务负责人"`
19 AssistLevel int `comment:"上级辅导情况" pg:",use_zero"` 20 AssistLevel int `comment:"上级辅导情况" pg:",use_zero"`
20 - AssistContent string `comment:"上级辅导内容"`  
21 - RemarkContent []domain.RemarkText `comment:"填写反馈进度"` 21 + AssistContent string `comment:"上级辅导内容" pg:",use_zero"`
  22 + RemarkContent []domain.RemarkText `comment:"填写反馈进度" pg:",use_zero"`
22 AnomalyState int `comment:"异常反馈状态" pg:",use_zero"` 23 AnomalyState int `comment:"异常反馈状态" pg:",use_zero"`
23 AssistState int `comment:"辅导反馈状态" pg:",use_zero"` 24 AssistState int `comment:"辅导反馈状态" pg:",use_zero"`
24 - TaskStages []domain.TaskStage `comment:"里程碑列表"` 25 + TaskStages []domain.TaskStage `comment:"里程碑列表" pg:",use_zero" `
25 TaskStageCheck domain.TaskStage `comment:"提交的里程碑"` 26 TaskStageCheck domain.TaskStage `comment:"提交的里程碑"`
26 CreatedAt time.Time `comment:"创建时间"` 27 CreatedAt time.Time `comment:"创建时间"`
27 UpdatedAt time.Time `comment:"更新时间"` 28 UpdatedAt time.Time `comment:"更新时间"`
28 DeletedAt *time.Time `comment:"删除时间"` 29 DeletedAt *time.Time `comment:"删除时间"`
29 - TaskCreatedBy int `comment:"任务的创建来源"` 30 + TaskCreatedBy int `comment:"任务的创建来源" pg:",use_zero" `
30 } 31 }