liujiandao
2023-09-20 726662cd89d0fe6b24461c850495db8c37a3e8f1
request/warehouse.go
@@ -6,12 +6,15 @@
}
type AddWarehouse struct {
   Name          string   `json:"name" gorm:"index;type:varchar(255);not null;comment:仓库名称"`                                 //仓库名称
   Active        bool     `json:"active" gorm:"type:tinyint(1);not null;comment:是否激活"`                                       //是否启用,传true就行
   Code          string   `json:"code" binding:"required,min=1,max=5"  gorm:"index;type:varchar(255);not null;comment:仓库编码"` //仓库编码
   PartnerID     int      `json:"partnerId"  gorm:"type:int;not null;comment:合作伙伴id"`                                        //合作伙伴id
   BuyToResupply bool     `json:"buyToResupply"`                                                                             //购买补给,已购买产品能够发送到此仓库
   ResupplyWhIds []string `json:"resupplyWhIds"`                                                                             //补给来源仓库ID
   Name                   string   `json:"name" gorm:"index;type:varchar(255);not null;comment:仓库名称"`                                 //仓库名称
   Active                 bool     `json:"active" gorm:"type:tinyint(1);not null;comment:是否激活"`                                       //是否启用,传true就行
   Code                   string   `json:"code" binding:"required,min=1,max=5"  gorm:"index;type:varchar(255);not null;comment:仓库编码"` //仓库编码
   PartnerID              int      `json:"partnerId"  gorm:"type:int;not null;comment:合作伙伴id"`                                        //合作伙伴id
   BuyToResupply          bool     `json:"buyToResupply"`                                                                             //购买补给,已购买产品能够发送到此仓库
   ResupplyWhIds          []string `json:"resupplyWhIds"`                                                                             //补给来源仓库ID
   Address                string   `json:"address" gorm:"type:varchar(512);comment:地址"`                                               //地址
   InboundTransportation  int      `json:"inboundTransportation" gorm:"type:int;comment:入向运输"`                                        //入向运输
   OutboundTransportation int      `json:"outboundTransportation" gorm:"type:int;comment:出库运输"`                                       //出库运输
}
type UpdateWarehouse struct {