refactor(erp): 优化销售商品结构体字段对齐
- 移除 PurchaseProduct 结构体定义 - 调整 SaleProductAdd 和 SaleProductEdit 字段布局 - 统一结构体字段的换行与缩进格式 - 删除重复的类型声明和注释 - 保持代码风格一致性
This commit is contained in:
@@ -166,13 +166,8 @@ type SaleProductAdd struct {
|
||||
RemarkImg string // 图片备注
|
||||
ContainerNumber string // 箱号
|
||||
SealNumber string // 封号
|
||||
PurchaseProducts []PurchaseProduct // 采购商品
|
||||
Children []SaleProductAdd // 子产品
|
||||
}
|
||||
type PurchaseProduct struct {
|
||||
PurchaseProductId int64 // 采购商品id
|
||||
ShipmentCount int64 // 出运数量
|
||||
}
|
||||
|
||||
// Add @TITLE 添加
|
||||
func (s *saleProduct) Add(ctx context.Context, args ArgsSaleProductAdd) (err error) {
|
||||
@@ -243,7 +238,6 @@ type SaleProductEdit struct {
|
||||
RemarkImg string // 图片备注
|
||||
ContainerNumber string // 箱号
|
||||
SealNumber string // 封号
|
||||
PurchaseProducts []PurchaseProduct // 采购商品
|
||||
}
|
||||
|
||||
// Edit @TITLE 编辑
|
||||
|
||||
@@ -169,13 +169,8 @@ type SaleProductAdd struct {
|
||||
RemarkImg string // 图片备注
|
||||
ContainerNumber string // 箱号
|
||||
SealNumber string // 封号
|
||||
PurchaseProducts []PurchaseProduct // 采购商品
|
||||
Children []SaleProductAdd // 子产品
|
||||
}
|
||||
type PurchaseProduct struct {
|
||||
PurchaseProductId int64 // 采购商品id
|
||||
ShipmentCount int64 // 出运数量
|
||||
}
|
||||
|
||||
// Add @TITLE 添加
|
||||
func (s *saleProduct) Add(ctx context.Context, args ArgsSaleProductAdd) (err error) {
|
||||
@@ -246,7 +241,6 @@ type SaleProductEdit struct {
|
||||
RemarkImg string // 图片备注
|
||||
ContainerNumber string // 箱号
|
||||
SealNumber string // 封号
|
||||
PurchaseProducts []PurchaseProduct // 采购商品
|
||||
}
|
||||
|
||||
// Edit @TITLE 编辑
|
||||
|
||||
Reference in New Issue
Block a user