order - TimYi/FengHuang GitHub Wiki

请求URL

http://101.200.229.135:8080/api/user/order/{id}

请求方式

GET  

请求参数

token:用户凭据
id:订单id,

返回参数

id:id
code:订单流水号
payTime:交易时间
price:售出的实际价格
status:处理状态
count:数量
name:商品名称
type:订单的商品类型
mainPic:主图
shopid:店铺id
shop:店铺名称
good:具体的商品信息,目前这个就是购买的套餐的信息

返回示例
返回订单和订单中商品的信息

{
"result": {
    "id": "404040e64d940a75014d940a812e0001",
    "price": 400,
    "status": "PROCESSING",
    "count": 1,
    "name": null,
    "type": "DECORATE_PACKAGE",
    "mainPic": "localhost:8080/fenghuangzhujia/image/bd285a0f-6694-47eb-8d63-b1cbc12d5207.png",
    "shopid": "0",
    "shop": "fenghuang",
    "good": {
        "id": "404040e64d940a75014d940a80e00000",
        "name": null,
        "price": 12,
        "realPrice": 10,
        "shop": {
            "id": "0",
            "name": "fenghuang",
            "title": null
        },
        "type": "DECORATE_PACKAGE",
        "mainPic": "localhost:8080/fenghuangzhujia/image/bd285a0f-6694-47eb-8d63-b1cbc12d5207.png",
        "mobile": "18612444099",
        "decoratingPackage": {
            "id": "404040e64d8fa9d4014d8fa9e2e10001",
            "menuid": null,
            "menu": "com.fenghuangzhujia.eshop.core.menu.Menu@7f0a967c",
            "brandid": null,
            "brand": "com.fenghuangzhujia.eshop.core.brand.Brand@68cfab7c",
            "title": null,
            "marketPrice": 12,
            "salePrice": 10,
            "housenum": 1,
            "housewarn": false,
            "warnnum": null,
            "description": null,
            "content": "test",
            "mainPic": {
                "id": "404040e64d8fa9d4014d8fa9e2150000",
                "url": "localhost:8080/fenghuangzhujia/image/bd285a0f-6694-47eb-8d63-b1cbc12d5207.png"
            },
            "thumbnails": null,
            "pics": [],
            "houseType": null,
            "decorateType": {
                "id": "404040e64d8f6dc0014d8f6dd8fa0014",
                "name": "新房到精装",
                "attr": null,
                "attr2": null,
                "type": "decorate"
            },
            "responseType": null,
            "workingDays": null,
            "keywrods": null,
            "details": [
                {
                    "ordernum": 1,
                    "position": null,
                    "meterial": "白银",
                    "count": "不限",
                    "description": null
                }
            ]
        },
        "decorateCase": null,
        "appointTime": null,
        "area": {
            "id": "404040e64d941482014d94148bb70000",
            "name": "朝阳",
            "level": "AREA"
        },
        "address": "test",
        "remark": "test",
        "houseArea": 40
    }
},
"status": "OK"
}