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

getRoomData 取房间数据

时间:2016-06-26 00:27:14      阅读:279      评论:0      收藏:0      [点我收藏+]

标签:

post:

request:

技术分享
{
    "action": "getRoomData",
    "isDebug":1,
    "token": "23b16784-54c5-4ca9-a885-e4b472ddc177",
    "requestData": {
        "Key": "e57c4868-937d-4a03-a1b0-bd3ef769d803"
    }
}
View Code

post:

技术分享
{
    "data": {
        "AppUserKey": null,
        "ClientProjectAddress": null,
        "HouseTypeDescription": null,
        "HouseTypeKey": null,
        "Key": "e57c4868-937d-4a03-a1b0-bd3ef769d803",
        "RoomTypes": [
            {
                "Remark": null,
                "RoomCountForRoomType": 1,
                "RoomTypeDescription": "餐厅",
                "RoomTypeKey": "01527aab-71ca-43e7-894d-79aa91f503ca",
                "Rooms": [
                    {
                        "Key": "ccac5f7b-cab4-4606-bab6-de6e6cd28175",
                        "RoomTypeKey": "01527aab-71ca-43e7-894d-79aa91f503ca",
                        "SingleRoomArea": 8
                    }
                ],
                "TotalAreaForRoomType": 8
            },
            {
                "Remark": null,
                "RoomCountForRoomType": 1,
                "RoomTypeDescription": "客厅",
                "RoomTypeKey": "90b69ee8-5dc5-4882-b69d-e7bc26da449d",
                "Rooms": [
                    {
                        "Key": "3cdb30c0-bc23-4b29-a599-cb94978c6e18",
                        "RoomTypeKey": "90b69ee8-5dc5-4882-b69d-e7bc26da449d",
                        "SingleRoomArea": 7
                    }
                ],
                "TotalAreaForRoomType": 7
            },
            {
                "Remark": null,
                "RoomCountForRoomType": 1,
                "RoomTypeDescription": "卧室",
                "RoomTypeKey": "1d2734f3-5f7a-4e25-b750-1478e3d614c6",
                "Rooms": [
                    {
                        "Key": "d2ca5e06-26f2-4603-8fdb-3f2a23762f5b",
                        "RoomTypeKey": "1d2734f3-5f7a-4e25-b750-1478e3d614c6",
                        "SingleRoomArea": 63
                    }
                ],
                "TotalAreaForRoomType": 63
            }
        ],
        "TotalArea": 78,
        "TotalLayerCount": 0,
        "TotalPeopleCount": 0
    },
    "msg": "success",
    "responseCode": {
        "msgCode": 200,
        "msgDetail": "OK"
    },
    "serverTime": "2016-06-25 23:25:22",
    "success": true
}
View Code

 

 

 

备注:

         1) 本API与 另一个 API (   getHouseAndRoomData 取房屋与房间数据  ) 的返回结构一模一样,用的是同一个实体类。

         区别在于 本 API仅取需要的字段信息。不取 项目地址与客户信息。

         2) 本API input 中的 requestData.Key 是 HouseKey。HouseKey 的来源是 房型输入第二步保存成功后得到的 Key

 

(结束)

getRoomData 取房间数据

标签:

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

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