update article添加毛利润
This commit is contained in:
parent
44514fbf39
commit
3910076c03
@ -22,9 +22,9 @@ func TestCAClient(t *testing.T) {
|
||||
//}
|
||||
//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 {
|
||||
t.Fatal(err)
|
||||
}
|
||||
t.Log(resp)
|
||||
t.Log(inv)
|
||||
}
|
||||
|
@ -42,7 +42,8 @@ type Article struct {
|
||||
// 销售商报价列表
|
||||
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"`
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user