jiangshuai
2024-02-06 02a2176f7c5733a4e4c4429c2028bbb86a967ce7
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" json:"id,string"`                                                // 主键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:采购名称"`      // 是否置顶
}