update models.
This commit is contained in:
parent
3d6f0150d6
commit
26ef90ce0e
@ -99,6 +99,7 @@ func CreateWorkOrder(c *gin.Context) {
|
|||||||
tx := orm.Eloquent.Begin()
|
tx := orm.Eloquent.Begin()
|
||||||
var workOrderInfo = process.WorkOrderInfo{
|
var workOrderInfo = process.WorkOrderInfo{
|
||||||
Title: workOrderValue.Title,
|
Title: workOrderValue.Title,
|
||||||
|
Priority: workOrderValue.Priority,
|
||||||
Process: workOrderValue.Process,
|
Process: workOrderValue.Process,
|
||||||
Classify: workOrderValue.Classify,
|
Classify: workOrderValue.Classify,
|
||||||
State: workOrderValue.State,
|
State: workOrderValue.State,
|
||||||
|
@ -13,6 +13,7 @@ import (
|
|||||||
type WorkOrderInfo struct {
|
type WorkOrderInfo struct {
|
||||||
base.Model
|
base.Model
|
||||||
Title string `gorm:"column:title; type:varchar(128)" json:"title" form:"title"` // 工单标题
|
Title string `gorm:"column:title; type:varchar(128)" json:"title" form:"title"` // 工单标题
|
||||||
|
Priority int `gorm:"column:priority; type:int(11)" json:"priority" form:"priority"` // 工单优先级 1,正常 2,紧急 3,非常紧急
|
||||||
Process int `gorm:"column:process; type:int(11)" json:"process" form:"process"` // 流程ID
|
Process int `gorm:"column:process; type:int(11)" json:"process" form:"process"` // 流程ID
|
||||||
Classify int `gorm:"column:classify; type:int(11)" json:"classify" form:"classify"` // 分类ID
|
Classify int `gorm:"column:classify; type:int(11)" json:"classify" form:"classify"` // 分类ID
|
||||||
IsEnd int `gorm:"column:is_end; type:int(11); default:0" json:"is_end" form:"is_end"` // 是否结束, 0 未结束,1 已结束
|
IsEnd int `gorm:"column:is_end; type:int(11); default:0" json:"is_end" form:"is_end"` // 是否结束, 0 未结束,1 已结束
|
||||||
|
Loading…
x
Reference in New Issue
Block a user