feat:完善项目

This commit is contained in:
henry
2021-11-19 11:53:20 +08:00
parent 5ff6164295
commit 7efe403bf0
9 changed files with 64 additions and 46 deletions

View File

@ -0,0 +1,18 @@
package model
// WorkPurchase 工单采购数据模型
type WorkPurchase struct {
Model
WorkID uint64 `gorm:"column:work_id;type:int(11);default:0;comment:工单ID" json:"-"`
MaterialPurchaseID uint64 `gorm:"column:material_purchase_id;type:int(11);default:0;comment:器材采购ID" json:"-"`
ModelDeleted
ModelAt
}
func (m *WorkPurchase) TableName() string {
return "work_purchase"
}
func NewWorkPurchase() *WorkPurchase {
return &WorkPurchase{}
}