码迷,mamicode.com
首页 > 其他好文 > 详细

getHouseAndRoomData 取房屋与房间数据

时间:2016-05-06 07:06:28      阅读:188      评论:0      收藏:0      [点我收藏+]

标签:

*** /api/ashx/service.ashx

POST

 

REQUEST:

技术分享
{
    "action": "getHouseAndRoomData",
    "token": "59ebefa6-214f-4141-a889-4c3e98fbaafd",
    "appUserKey": "79bb640d-9ce0-46d6-bf2b-7d9d548fc460"
}
View Code

RESPONSE:

技术分享
    {
        "data":
        {
            "AppUserKey": "79bb640d-9ce0-46d6-bf2b-7d9d548fc460",
            "HouseTypeDescription": "房屋类型",
            "HouseTypeKey": "f1cf0d0e-f991-4bbf-8e48-23004786ed8c",
            "RoomTypes":
            [
                {
                    "Remark": "test11",
                    "RoomCountForRoomType": 2,
                    "RoomTypeDescription": "卧室",
                    "RoomTypeKey": "1d2734f3-5f7a-4e25-b750-1478e3d614c6",
                    "Rooms":
                    [
                        {
                            "RoomTypeKey": "1d2734f3-5f7a-4e25-b750-1478e3d614c6",
                            "SingleRoomArea": 73.3
                        },
                        {
                            "RoomTypeKey": "1d2734f3-5f7a-4e25-b750-1478e3d614c6",
                            "SingleRoomArea": 53.8
                        }
                    ],
                    "TotalAreaForRoomType": 343.3
                },
                {
                    "Remark": "223aaa",
                    "RoomCountForRoomType": 3,
                    "RoomTypeDescription": "客厅",
                    "RoomTypeKey": "90b69ee8-5dc5-4882-b69d-e7bc26da449d",
                    "Rooms":
                    [
                        {
                            "RoomTypeKey": "90b69ee8-5dc5-4882-b69d-e7bc26da449d",
                            "SingleRoomArea": 23.3
                        },
                        {
                            "RoomTypeKey": "90b69ee8-5dc5-4882-b69d-e7bc26da449d",
                            "SingleRoomArea": 4.5
                        },
                        {
                            "RoomTypeKey": "90b69ee8-5dc5-4882-b69d-e7bc26da449d",
                            "SingleRoomArea": 73.8
                        }
                    ],
                    "TotalAreaForRoomType": 83.3
                }
            ],
            "TotalArea": 879.35,
            "TotalPeopleCount": 5
        },
        "msg": "success",
        "responseCode":
        {
            "msgCode": 200,
            "msgDetail": "OK"
        },
        "serverTime": "2016-05-06 04:08:34",
        "success": true
    }
View Code

REQUEST 2: (TOKEN check failed)

技术分享
{
    "action": "getHouseAndRoomData",
    "token": "5d4ad43b-876f-417a-a00c-69b8133df0dc",
    "appUserKey": "29bb640d-9ce0-46d6-bf2b-7d9d548fc460"
}
View Code

response 2:

技术分享
    {
        "data": null,
        "msg": null,
        "responseCode":
        {
            "msgCode": 401,
            "msgDetail": "Unauthorized"
        },
        "serverTime": "2016-05-06 04:10:20",
        "success": false
    }
View Code

 

getHouseAndRoomData 取房屋与房间数据

标签:

原文地址:http://www.cnblogs.com/jwiter/p/5464031.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!