2
This commit is contained in:
parent
97b8a21254
commit
1ff9518625
@ -127,9 +127,9 @@ type reportPreResponse struct {
|
|||||||
|
|
||||||
// 获取商品库存返回数据
|
// 获取商品库存返回数据
|
||||||
type getProdStockResponse struct {
|
type getProdStockResponse struct {
|
||||||
ResultCode string `json:"resultCode"` // 操作编码
|
ResultCode string `json:"resultCode"` // 操作编码
|
||||||
ResultDesc string `json:"resultDesc"` // 描述
|
ResultDesc string `json:"resultDesc"` // 描述
|
||||||
Data GetProdStockDataResponse `json:"data"` // 具体内容
|
Data []GetProdStockDataResponse `json:"data"` // 具体内容
|
||||||
}
|
}
|
||||||
|
|
||||||
type GetProdStockDataResponse struct {
|
type GetProdStockDataResponse struct {
|
||||||
@ -409,5 +409,5 @@ func (r GetProdStockRequest) GetProdStock() (*GetProdStockDataResponse, error) {
|
|||||||
return nil, errors.New("获取商品库存失败")
|
return nil, errors.New("获取商品库存失败")
|
||||||
}
|
}
|
||||||
|
|
||||||
return &response.Data, nil
|
return &response.Data[0], nil
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user