feat:完善项目
This commit is contained in:
32
app/common/model/manage_supplier.go
Normal file
32
app/common/model/manage_supplier.go
Normal file
@ -0,0 +1,32 @@
|
||||
package model
|
||||
|
||||
// ManageSupplier 供应商数据模型
|
||||
type ManageSupplier struct {
|
||||
Model
|
||||
ModelTenant
|
||||
Kind ManageSupplierKind `gorm:"column:kind;type:tinyint(1);default:1;comment:类型" json:"kind"`
|
||||
Name string `gorm:"column:name;type:varchar(100);default:null;comment:名称" json:"name"`
|
||||
Mobile string `gorm:"column:mobile;type:varchar(20);default:null;comment:联系方式" json:"mobile"`
|
||||
Address string `gorm:"column:address;type:varchar(255);default:null;comment:联系地址" json:"address"`
|
||||
Remark string `gorm:"column:remark;type:varchar(255);default:null;comment:备注信息 " json:"remark"`
|
||||
ModelDeleted
|
||||
ModelAt
|
||||
}
|
||||
|
||||
// ManageSupplierKind 供应商类型
|
||||
type ManageSupplierKind int
|
||||
|
||||
const (
|
||||
// ManageSupplierKindForMaterial 材料供应商
|
||||
ManageSupplierKindForMaterial ManageSupplierKind = iota + 101
|
||||
// ManageSupplierKindForRepair 维修供应商
|
||||
ManageSupplierKindForRepair
|
||||
)
|
||||
|
||||
func (*ManageSupplier) TableName() string {
|
||||
return "manage_supplier"
|
||||
}
|
||||
|
||||
func NewManageSupplier() *ManageSupplier {
|
||||
return &ManageSupplier{}
|
||||
}
|
Reference in New Issue
Block a user