订单确认页

初始化时加载三个请求:sum,getAll和getcarts

1、sum

    请求路径:/carts/sum

    请求方式:GET

    Request URL:  http://localhost:8080/carts/sum?username=ZTY

    作用:返回购物车的总数量

    响应json:

    {
    "status": 0,
"data": null,
"cartTotalPrice": 0,
"imageHost": null,
"selectedAll": false,
"cartTotalQuantity": 3
}


 2、getAll

    请求路径: /shippings/getAll

    请求方式:GET

    Request URL:  http://localhost:8080/shippings/getAll?username=ZTY

    作用:返回用户填写过的所有地址

    响应json:

{

"status": 0,
"data": {
"total": 2,
"addreList": [
{
"id": 1,
"userid": "60e7d760-1fa9-4391-a0e7-a302b0439ca1",
"username": null,
"receiverName": "ZTY",
"receiverMobile": "18873242002",
"receiverProvince": "广东省",
"receiverCity": "东莞市",
"receiverAddress": "OPPO移动终端部",
"receiverZip": "523879"
},
{
"id": 2,
"userid": "60e7d760-1fa9-4391-a0e7-a302b0439ca1",
"username": null,
"receiverName": "ttt",
"receiverMobile": "11111111111",
"receiverProvince": "天津市",
"receiverCity": "和平区",
"receiverAddress": "无",
"receiverZip": "523879"
}
]
}
}


3、getcarts

    请求路径:/carts/getcarts

    请求方式:GET

    Request URL:  http://localhost:8080/carts/getcarts?username=ZTY

    作用:返回购物车中所有商品详细信息

    响应json:

   {

    "status": 0,
"data": {
"list": [
{
"good_id": 4,
"count": 2,
"goods_name": "小米11",
"subtitle": "2021轻装上阵",
"price": 4299,
"productTotalPrice": 8598,
"productStock": 1000,
"productSelected": true,
"status": 1
},
{
"good_id": 3,
"count": 1,
"goods_name": "Redmi K20 Pro",
"subtitle": "高性能长续航 5G 手机",
"price": 1418,
"productTotalPrice": 1418,
"productStock": 1000,
"productSelected": true,
"status": 1
}
]
},
"cartTotalPrice": 10016,
"imageHost": "www.mi.com",
"selectedAll": true,
"cartTotalQuantity": 3
}