This commit is contained in:
wucongxing 2023-12-25 11:58:18 +08:00
parent 97b8a21254
commit 1ff9518625

View File

@ -127,9 +127,9 @@ type reportPreResponse struct {
// 获取商品库存返回数据
type getProdStockResponse struct {
ResultCode string `json:"resultCode"` // 操作编码
ResultDesc string `json:"resultDesc"` // 描述
Data GetProdStockDataResponse `json:"data"` // 具体内容
ResultCode string `json:"resultCode"` // 操作编码
ResultDesc string `json:"resultDesc"` // 描述
Data []GetProdStockDataResponse `json:"data"` // 具体内容
}
type GetProdStockDataResponse struct {
@ -409,5 +409,5 @@ func (r GetProdStockRequest) GetProdStock() (*GetProdStockDataResponse, error) {
return nil, errors.New("获取商品库存失败")
}
return &response.Data, nil
return &response.Data[0], nil
}