zhangqian
2024-07-30 4af540bc284454a6889ded0e8c99c40ae9516e0a
request/product_request.go
@@ -7,8 +7,9 @@
type GetProductList struct {
   PageInfo
   KeyWord    string `json:"keyWord"`
   CategoryId int    `json:"categoryId"`
   KeyWord     string `json:"keyWord"`
   CategoryId  int    `json:"categoryId"`
   CategoryIds []int  `json:"categoryIds"`
}
type QueryOperationList struct {
@@ -60,3 +61,12 @@
   ProductId   string          `gorm:"column:product_id"`
   TotalAmount decimal.Decimal `gorm:"column:total_amount"`
}
type UnitDict struct {
   Name      string `gorm:"unique;type:varchar(191);not null;comment:名称" json:"name"`
   IsDefault bool   `gorm:"type:tinyint(1);comment:是否默认" json:"isDefault"`
}
type SaveUnitDict struct {
   Data []*UnitDict `json:"data"`
}