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
|
}
|