feat:完善项目
This commit is contained in:
18
app/common/model/work_repair.go
Normal file
18
app/common/model/work_repair.go
Normal file
@ -0,0 +1,18 @@
|
||||
package model
|
||||
|
||||
// WorkRepair 工单维修数据模型
|
||||
type WorkRepair struct {
|
||||
Model
|
||||
WorkID uint64 `gorm:"column:work_id;type:int(11);default:0;comment:工单ID" json:"-"`
|
||||
Status int `json:"status"`
|
||||
ModelDeleted
|
||||
ModelAt
|
||||
}
|
||||
|
||||
func (m *WorkRepair) TableName() string {
|
||||
return "work_repair"
|
||||
}
|
||||
|
||||
func NewWorkRepair() *WorkRepair {
|
||||
return &WorkRepair{}
|
||||
}
|
Reference in New Issue
Block a user