By calling this interface, you can read the daily sales of a certain product. It is recommended to use the echarts icon line chart to visually display the sales expectations of the product.
```javascript
WXAPI.goodsStatistics({
goodsId: 1,
page: 1,
pageSize: 10
})
```
+ goodsId is the product ID that needs to be viewed. If not passed, the daily sales summary of all products will be returned.
+ page gets the data on which page
+ pageSize How many pieces of data are returned per page
```json
{
"code": 0,
"data": {
"result": [
{
"day": "20211225",
"goodsId": 844483,
"id": 180323,
"number": 15,
"saleroom": 5310,
"userId": 10168
}
],
"totalRow": 153,
"totalPage": 4
},
"msg": "success"
}
```
+ day summary date, format is yyyyMMdd
+ goodsId commodity ID
+ number The number of sales of this product on the day
+ saleroom The sales volume of this product on that day