feat:完善项目
This commit is contained in:
@ -50,7 +50,7 @@ func initModel() {
|
||||
// 公告管理
|
||||
&synchronized{iModel: model.NewManageNotice()},
|
||||
// 功能信息
|
||||
&synchronized{iModel: model.NewManageSupplier()},
|
||||
&synchronized{iModel: model.NewManageSupplier()}, &synchronized{iModel: model.NewManageSupplierEvaluate()},
|
||||
&synchronized{iModel: model.NewManageEquipment()}, &synchronized{iModel: model.NewManageEquipmentMaterial()},
|
||||
&synchronized{iModel: model.NewManageMaterial()}, &synchronized{iModel: model.NewManageMaterialSupplier()},
|
||||
&synchronized{iModel: model.NewManageMaterialPurchase()}, &synchronized{iModel: model.NewManageMaterialWarehouse()},
|
||||
|
20
app/common/model/manage_supplier_evaluate.go
Normal file
20
app/common/model/manage_supplier_evaluate.go
Normal file
@ -0,0 +1,20 @@
|
||||
package model
|
||||
|
||||
// ManageSupplierEvaluate 供应商评价数据模型
|
||||
type ManageSupplierEvaluate struct {
|
||||
Model
|
||||
SupplierID uint64 `gorm:"column:supplier_id;type:int(11);default:0;comment:供应商ID" json:"-"`
|
||||
Praise int `gorm:"column:praise;type:int(8);default:0;comment:好评" json:"praise"`
|
||||
Middle int `gorm:"column:middle;type:int(8);default:0;comment:中评" json:"middle"`
|
||||
Negative int `gorm:"column:negative;type:int(8);default:0;comment:差评" json:"negative"`
|
||||
ModelDeleted
|
||||
ModelAt
|
||||
}
|
||||
|
||||
func (m *ManageSupplierEvaluate) TableName() string {
|
||||
return "manage_supplier_evaluate"
|
||||
}
|
||||
|
||||
func NewManageSupplierEvaluate() *ManageSupplierEvaluate {
|
||||
return &ManageSupplierEvaluate{}
|
||||
}
|
Reference in New Issue
Block a user