This commit is contained in:
2024-09-18 10:51:37 +08:00
parent 2d96fdfe3b
commit aafd4150c3
2 changed files with 79 additions and 21 deletions

View File

@@ -23,19 +23,55 @@ type ProductSearch struct {
CustomSerial string // 客户货号
Serial string // 货号
CreatedStaffIds []int64 // 录入人
SaleIds []int64 // 销售合同id
}
type ReplyProductList struct {
Total int64 `json:"total"`
List []ProductListItem `json:"list"`
}
type ProductListItem struct {
ProductItem
CreatedStaffId int64 `json:"createdStaffId"`
CreatedAt *time.Time `json:"createdAt"`
PiSerial string `json:"piSerial"`
PoSerial string `json:"poSerial"`
CustomShortName string `json:"customShortName"`
CustomName string `json:"customName"`
Id int64 `json:"id"`
Mold int64 `json:"mold"`
ParentId int64 `json:"parentId"`
Serial string `json:"serial"`
Po string `json:"po"`
CustomSerial string `json:"customSerial"`
Name string `json:"name"`
EngName string `json:"engName"`
ImgFilePaths []string `json:"imgFilePaths"`
Weight *decimal.Decimal `json:"weight"`
Texture string `json:"texture"`
SalePrice decimal.Decimal `json:"salePrice"`
BanFlag int64 `json:"banFlag"`
Type string `json:"type"`
Barcode string `json:"barcode"`
SellCountry string `json:"sellCountry"`
Info string `json:"info"`
Sort int64 `json:"sort"`
SaleCount int64 `json:"saleCount"`
SaleAmount decimal.Decimal `json:"saleAmount"`
BoxCount int64 `json:"boxCount"`
QuotePrice decimal.Decimal `json:"quotePrice"`
QuoteFactorySerial string `json:"quoteFactorySerial"`
QuoteFactoryId int64 `json:"quoteFactoryId"`
QuoteFactoryName string `json:"quoteFactoryName"`
QuoteStartNum int64 `json:"quoteStartNum"`
QuoteMeasureUnit string `json:"quoteMeasureUnit"`
Currency string `json:"currency"`
CurrencyName string `json:"currencyName"`
CurrencySymbol string `json:"currencySymbol"`
CurrencyRate decimal.Decimal `json:"currencyRate"`
PurchaseCount int64 `json:"purchaseCount"`
CreatedAt *time.Time `json:"createdAt"`
UpdatedAt *time.Time `json:"updatedAt"`
CreatedStaffId int64 `json:"createdStaffId"`
PiSerial string `json:"piSerial"`
PoSerial string `json:"poSerial"`
CustomShortName string `json:"customShortName"`
CustomName string `json:"customName"`
SaleCreatedAt *time.Time `json:"saleCreatedAt"`
PurchasedCount int64 `json:"purchasedCount"`
ShipmentCount int64 `json:"shipmentCount"`
}
// List @TITLE 产品列表
@@ -194,6 +230,7 @@ type ProductCustomsInfo struct {
type ReplyProductInfo struct {
Id int64 `json:"id"`
ProductId int64 `json:"productId"`
Mold int64 `json:"mold"`
Serial string `json:"serial"`
CustomSerial string `json:"customSerial"`