| | |
| | | ) |
| | | |
| | | type GVA_MODEL struct { |
| | | ID uint `gorm:"primarykey"` // 主键ID |
| | | ID uint `json:"id,string" gorm:"primarykey"` // 主键ID |
| | | CreatedAt *time.Time `json:"-"` // 创建时间 |
| | | UpdatedAt *time.Time `json:"-"` // 更新时间 |
| | | DeletedAt gorm.DeletedAt `gorm:"index" json:"-"` // 删除时间 |
| | |
| | | } |
| | | |
| | | type Purchase struct { |
| | | ID uint `gorm:"primarykey"` // 主键ID |
| | | ID uint `json:"id,string" gorm:"primarykey"` // 主键ID |
| | | PurchaseTypeId int `json:"purchaseTypeId" form:"purchaseType" gorm:"type:int(11);not null;default 0;comment:采购类型id"` // 采购类型id |
| | | SupplierId int `json:"supplierId" form:"supplierId" gorm:"type:int(11);not null;default 0;comment:供应商id"` // 供应商id |
| | | OrderSource string `json:"orderSource" gorm:"type:varchar(255);not null;default '';comment:单据来源"` // 单据来源 |