package purchaserequest type SavePurchaseType struct { List []*PurchaseType `json:"purchase"` } type PurchaseType struct { ID uint `gorm:"primarykey"` // 主键ID Name string `json:"name" form:"name" gorm:"type:varchar(255);not null;default '';comment:采购类型"` // 采购类型 Sort int `json:"sort" form:"sort" gorm:"type:int(11);not null;default 0;comment:排序"` // 排序 Pin bool `json:"pin" form:"pin" gorm:"type:tinyint(1);not null;default 0;comment:采购名称"` // 是否置顶 }