feat:完善项目

This commit is contained in:
henry
2021-11-16 11:46:44 +08:00
parent 78128277ff
commit 978918e5aa
14 changed files with 193 additions and 19 deletions

View 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{}
}