123456789101112131415161718192021 |
- package models
- import model2 "Medical_ERP/common/model"
- type ProductCode struct {
- model2.Model
- Product string `json:"product" gorm:"size:512;"` // 药品名称
- Enterprise string `json:"enterprise" gorm:"size:512;"` // 生产企业
- Spec string `json:"spec" gorm:"size:512;"` // 规格
- BatchNumber string `json:"batchNumber" gorm:"size:128;"` // 批号
- model2.ControlBy
- model2.ModelTime
- }
- func (e *ProductCode) TableName() string {
- return "product_code"
- }
- func (e *ProductCode) GetId() interface{} {
- return e.Id
- }
|