feat:完善项目

This commit is contained in:
henry
2021-11-16 16:39:21 +08:00
parent 978918e5aa
commit 48319d9632
8 changed files with 83 additions and 12 deletions

View File

@ -5,11 +5,11 @@ import "strings"
// WorkSchedule 工单流程数据模型
type WorkSchedule struct {
Model
Kind WorkScheduleKind `gorm:"column:kind;type:tinyint(1);default:1;comment:工单类型" json:"-"`
Kind WorkScheduleKind `gorm:"column:kind;type:tinyint(1);default:1;comment:工单类型1维修工单" json:"-"`
Title string `gorm:"column:title;type:varchar(30);default:null;comment:标题" json:"title"`
Stage int `gorm:"column:stage;type:tinyint(1);default:1;comment:阶段" json:"stage"`
Step int `gorm:"column:step;type:tinyint(1);default:1;comment:步骤1阶段-1步骤" json:"step"`
Target WorkScheduleTarget `gorm:"column:target;type:tinyint(1);default:1;comment:对象类型" json:"target"`
Target WorkScheduleTarget `gorm:"column:target;type:tinyint(1);default:1;comment:对象类型1个人2角色" json:"target"`
TargetValue string `gorm:"column:target_value;type:tinyint(1);default:1;comment:对象信息" json:"target_value"`
IsCountersign WorkScheduleCountersign `gorm:"column:is_countersign;type:tinyint(1);default:0;comment:是否会签" json:"is_countersign"`
ModelDeleted