Request
Header:[{
"jwt-auth-token" : "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzI(์ง๊ธ ์ ์ํ ์ ์ ์ ํ ํฐ)"
}],
data:
{
"orderForms":[{
"productId": 1,
"optionInfo": "์ต์
1: ์ ํ/ ์ต์
2: ์ ํ์ํจ",
"productNum": 2,
"productDetailPrice": 20000
},
{
"productId": 2,
"optionInfo": "์ต์
1: ์ด๋ป๊ฒ/ ์ต์
2: ์ ํํจ",
"productNum": 3,
"productDetailPrice": 20000
}],
"addressDTO":{
"id": null,
"name": "์๋ น์์ด๋ฆ",
"phone": "010-000-0000",
"zipcode": "123211",
"addressMain": "์๋ นํ ์ฃผ์ฃผ์",
"addressSub": "์๋ นํ ์์ธ์ฃผ์"
},
"orderPrice": 50000,
"orderAccount": "๊ฒฐ์ ์ ๋ณด"
}
- addressDTO์ ํด๋น 'id'๊ฐ์ ๋ณด๋ด์ฃผ๋ฉด, ๊ทธ ์ฃผ์์ ํด๋นํ๋ ๊ฐ์ ์์ (update)์ํค๊ณ ํด๋น ์ฃผ์์ ์ ๋ณด๋ก ๋ค์ด๊ฐ๋๋ค.
- orderetail๊ฐ๋ค์ ๊ฐ๊ฐ ๋ฃ์ด์ฃผ๊ณ , ์ด๋ค์ ํฉ์ฐ์ orderPrice์ ๋ฃ์ด์ฃผ์
์ผํฉ๋๋ค.
Response
{
"success": true,
"response": {
"id": 5,
"orderDate": "2021-02-25T13:44:11.2867948",
"price": 50000,
"account": "๊ฒฐ์ ์ ๋ณด",
"orderDetailDTOs": [
{
"id": 7,
"orderId": 5,
"authorId": 1,
"authorName": "test0",
"productId": 1,
"productName": "product1_by_test0",
"optionInfo": "์ต์
1: ์ ํ/ ์ต์
2: ์ ํ์ํจ",
"productNum": 2,
"productDetailPrice": 20000
},
{
"id": 8,
"orderId": 5,
"authorId": 2,
"authorName": "test1",
"productId": 2,
"productName": "product2_by_test1",
"optionInfo": "์ต์
1: ์ด๋ป๊ฒ/ ์ต์
2: ์ ํํจ",
"productNum": 3,
"productDetailPrice": 20000
}
],
"addressDTO": {
"id": 6,
"name": "์๋ น์์ด๋ฆ",
"phone": "010-000-0000",
"zipcode": "123211",
"addressMain": "์๋ นํ ์ฃผ์ฃผ์",
"addressSub": "์๋ นํ ์์ธ์ฃผ์"
}
},
"apiError": null
}