Authorization: Bearer ********************
{
"name": "aaa",
"categoryId":1,
"oldPrice": 100,
"newPrice": 88,
"desc": "aaaa",
"status": 1,
"imgUrl": "www.itsiyuan.com/abc.png",
"inventoryCount": 100,
"saleCount": 100,
"favorCount": 199,
"address": "北京"
}
curl --location --request POST 'https://cms.server.hqk10.top/api/v1/goods' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "aaa",
"categoryId":1,
"oldPrice": 100,
"newPrice": 88,
"desc": "aaaa",
"status": 1,
"imgUrl": "www.itsiyuan.com/abc.png",
"inventoryCount": 100,
"saleCount": 100,
"favorCount": 199,
"address": "北京"
}'
{
"data": "创建商品成功~",
"code": 200,
"message": "操作成功"
}