update article添加毛利润

This commit is contained in:
timerzz 2025-03-29 20:48:23 +08:00
parent 44514fbf39
commit 3910076c03
2 changed files with 4 additions and 3 deletions

View File

@ -22,9 +22,9 @@ func TestCAClient(t *testing.T) {
//} //}
//t.Log(resp) //t.Log(resp)
resp, err := client.RequestProductDetailList(ctx, "CK535-WEC", "CP081-SVVSW", "C9949-SVVDT", "CM235-SVELC", "CP081-JIBLK", "CAA92-IMCHR", "C9949-SVQVE", "CW637-B4CED") inv, err := client.RequestProductDetail(ctx, "CP150-LHBLK")
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
} }
t.Log(resp) t.Log(inv)
} }

View File

@ -42,7 +42,8 @@ type Article struct {
// 销售商报价列表 // 销售商报价列表
Sellers []SellerArticle `json:"sellers" gorm:"foreignKey:ArticleID"` Sellers []SellerArticle `json:"sellers" gorm:"foreignKey:ArticleID"`
// 利润率 // 利润率
Rate float64 `json:"rate" gorm:"index"` //利润率 Rate float64 `json:"rate" gorm:"index"` //利润率
GrossProfit float64 `json:"grossProfit"` //毛利润
//备注 //备注
Remark string `json:"remark"` Remark string `json:"remark"`
} }