yinbentan
2024-07-06 30acb46c5dd8f752b5a209978419b4770a322934
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package request
 
import "wms/models"
 
type AttributeList struct {
    PageInfo
    Keyword    string            `json:"keyword" form:"keyword"`
    EntityType models.EntityType `json:"entityType" form:"entityType"`
}
 
type AddAttribute struct {
    Name         string   `gorm:"type:varchar(100);not null;default:''" json:"name"` //属性名称
    DataType     int      `gorm:"type:tinyint;not null;default:0" json:"dataType"`   //值类型(1字符串 2 int 3 下拉框 )
    EntityType   int      `gorm:"type:tinyint;not null;default:0" json:"entityType"` //给谁用的 1 物料(产品)
    SelectValues []string `json:"selectValues" gorm:"_"`
    SelectValue  string   `json:"-" gorm:"type:text;"`
}
 
type UpdateAttribute struct {
    ID uint `gorm:"comment:主键ID;primaryKey;" json:"id"`
    AddAttribute
}