zhangqian
2024-08-01 fc3313955a083c9480e4ea74398f72f9ba6addcd
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 {
@@ -24,12 +25,12 @@
   ToLocationId   int             `json:"toLocationId"`
   SourceNumber   string          `json:"sourceNumber"`
   //Unit           string          `json:"unit"`
   Number string `json:"number"`
}
type QueryDisuseList struct {
   PageInfo
   Number       string `json:"number"`
   SourceNumber string `json:"sourceNumber"`
   Number string `json:"number"`
}
type UpdateDisuse struct {
@@ -50,3 +51,22 @@
   ProductId  string `json:"productId"`
   LocationId int    `json:"locationId"`
}
type ProductStatistics struct {
   TotalAmount       decimal.Decimal            `gorm:"column:total_amount"`
   BaseOperationType constvar.BaseOperationType `gorm:"column:base_operation_type"` //基础作业类型
}
type ProductStatisticsAmount struct {
   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"`
}