Authorization: Bearer ********************{
"name": "无线蓝牙耳机",
"spu_name": "蓝牙耳机系列",
"description": "高质量无线蓝牙耳机,音质清晰,电池续航长。",
"picture": "https://example.com/earphone.jpg",
"price": 299,
"spu_price": 299,
"stock": 50,
"category_ids": [
1,
2
]
}curl --location --request POST '/api/v1/products' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "无线蓝牙耳机",
"spu_name": "蓝牙耳机系列",
"description": "高质量无线蓝牙耳机,音质清晰,电池续航长。",
"picture": "https://example.com/earphone.jpg",
"price": 299,
"spu_price": 299,
"stock": 50,
"category_ids": [
1,
2
]
}'{
"code": 0,
"msg": "string",
"data": {}
}