|
|
|
|
3
|
import "XT/models"
|
3
|
import "XT/models"
|
4
|
|
4
|
|
5
|
type GoodsType struct {
|
5
|
type GoodsType struct {
|
6
|
- ID int64 `gorm:"column:id" json:"id"`
|
|
|
7
|
- TypeCode string `gorm:"column:type_code" json:"type_code"`
|
|
|
8
|
- TypeName string `gorm:"column:type_name" json:"type_name"`
|
|
|
9
|
- Remark string `gorm:"column:remark" json:"remark"`
|
|
|
10
|
- Ctime int64 `gorm:"column:ctime" json:"ctime"`
|
|
|
11
|
- Mtime int64 `gorm:"column:mtime" json:"mtime"`
|
|
|
12
|
- Creater int64 `gorm:"column:creater" json:"creater"`
|
|
|
13
|
- Modifier int64 `gorm:"column:modifier" json:"modifier"`
|
|
|
14
|
- OrgId int64 `gorm:"column:org_id" json:"org_id"`
|
|
|
15
|
- Status int64 `gorm:"column:status" json:"status"`
|
|
|
16
|
- Type int64 `gorm:"column:type" json:"type"`
|
|
|
17
|
- Number int64 `gorm:"column:number" json:"number"`
|
|
|
18
|
- OutStock int64 `gorm:"column:out_stock" json:"out_stock" form:"out_stock"`
|
|
|
19
|
- StockAttribute int64 `gorm:"column:stock_attribute" json:"stock_attribute" form:"stock_attribute"`
|
|
|
|
|
6
|
+ ID int64 `gorm:"column:id" json:"id"`
|
|
|
7
|
+ TypeCode string `gorm:"column:type_code" json:"type_code"`
|
|
|
8
|
+ TypeName string `gorm:"column:type_name" json:"type_name"`
|
|
|
9
|
+ Remark string `gorm:"column:remark" json:"remark"`
|
|
|
10
|
+ Ctime int64 `gorm:"column:ctime" json:"ctime"`
|
|
|
11
|
+ Mtime int64 `gorm:"column:mtime" json:"mtime"`
|
|
|
12
|
+ Creater int64 `gorm:"column:creater" json:"creater"`
|
|
|
13
|
+ Modifier int64 `gorm:"column:modifier" json:"modifier"`
|
|
|
14
|
+ OrgId int64 `gorm:"column:org_id" json:"org_id"`
|
|
|
15
|
+ Status int64 `gorm:"column:status" json:"status"`
|
|
|
16
|
+ Type int64 `gorm:"column:type" json:"type"`
|
|
|
17
|
+ Number int64 `gorm:"column:number" json:"number"`
|
|
|
18
|
+ OutStock int64 `gorm:"column:out_stock" json:"out_stock" form:"out_stock"`
|
|
|
19
|
+ StockAttribute int64 `gorm:"column:stock_attribute" json:"stock_attribute" form:"stock_attribute"`
|
|
|
20
|
+ StockAttribute1 int64 `gorm:"-" json:"stock_attribute" form:"stock_attribute"`
|
20
|
}
|
21
|
}
|
21
|
|
22
|
|
22
|
func (GoodsType) TableName() string {
|
23
|
func (GoodsType) TableName() string {
|