zhangqian
2023-08-29 cd6940f07750c1e2cd3a5c0eeafa6cc0309ef2f6
1
2
3
4
5
6
7
8
9
10
11
12
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:采购名称"`      // 是否置顶
}