2, 取字典
http://localhost:2448/api/ashx/service.ashx
POST
REQUEST 1:
{ "action":"getDictionarys", "token":"ad28282e-81a2-4378-8b27-e17121294e20" }
RESPONSE 1: (TOKEN已过期)
{ "data": null, "msg": null, "responseCode": { "msgCode": 401, "msgDetail": "Unauthorized" }, "serverTime": "2016-05-02 00:30:22", "success": false }
REQUEST 2:
{ "action":"getDictionarys", "token":"9fbea6e8-ffdc-4240-9cc2-743105b12721" }
RESPONSE 2:
{ "data": { "List": [ { "CreatedStamp": "/Date(1462120320871+0800)/", "Key": "03e98553-d65b-485b-8c14-1e13ee8e2793", "Name": "空调品牌", "ParentKey": null, "Tag": "AirConditionBrand" }, { "CreatedStamp": "/Date(1462120320871+0800)/", "Key": "fbbb640d-9ce0-46d6-bf2b-7d9d548fc4a4", "Name": "房屋类型", "ParentKey": null, "Tag": "HouseType" }, { "CreatedStamp": "/Date(1462120320871+0800)/", "Key": "811aa0eb-4016-4aa8-bec9-db43102f08e6", "Name": "房间类型", "ParentKey": null, "Tag": "RoomType" } ] }, "msg": "success", "responseCode": { "msgCode": 200, "msgDetail": "OK" }, "serverTime": "2016-05-02 00:32:00", "success": true }
REQUEST 3:
{ "action":"getDictionarys", "token":"9fbea6e8-ffdc-4240-9cc2-743105b12721", "Tag":"RoomType" }
RESPONSE 3:
{ "data": { "List": [ { "CreatedStamp": "/Date(1462120569402+0800)/", "Key": "1d2734f3-5f7a-4e25-b750-1478e3d614c6", "Name": "卧室", "ParentKey": "811aa0eb-4016-4aa8-bec9-db43102f08e6", "Tag": null }, { "CreatedStamp": "/Date(1462120569402+0800)/", "Key": "28bb2708-69bd-464c-9419-a3339c7a2333", "Name": "卫生间", "ParentKey": "811aa0eb-4016-4aa8-bec9-db43102f08e6", "Tag": null }, { "CreatedStamp": "/Date(1462120569402+0800)/", "Key": "90b69ee8-5dc5-4882-b69d-e7bc26da449d", "Name": "客厅", "ParentKey": "811aa0eb-4016-4aa8-bec9-db43102f08e6", "Tag": null }, { "CreatedStamp": "/Date(1462120569402+0800)/", "Key": "acbe452b-28da-49a0-a7c3-f3e39de34355", "Name": "厨房", "ParentKey": "811aa0eb-4016-4aa8-bec9-db43102f08e6", "Tag": null } ] }, "msg": "success", "responseCode": { "msgCode": 200, "msgDetail": "OK" }, "serverTime": "2016-05-02 00:36:09", "success": true }
REQUEST 4:
{ "action":"getDictionarys", "token":"9fbea6e8-ffdc-4240-9cc2-743105b12721", "Tag":"HouseType" }
RESPONSE 4:
{ "data": { "List": [ { "CreatedStamp": "/Date(1462120668731+0800)/", "Key": "f1cf0d0e-f991-4bbf-8e48-23004786ed8c", "Name": "平层", "ParentKey": "fbbb640d-9ce0-46d6-bf2b-7d9d548fc4a4", "Tag": null }, { "CreatedStamp": "/Date(1462120668731+0800)/", "Key": "fa2ad2e1-818e-49ff-838b-7a484adf5ccd", "Name": "别墅", "ParentKey": "fbbb640d-9ce0-46d6-bf2b-7d9d548fc4a4", "Tag": null }, { "CreatedStamp": "/Date(1462120668731+0800)/", "Key": "d9c88ccc-80dd-462b-aef2-d00c9da6fafb", "Name": "小工装", "ParentKey": "fbbb640d-9ce0-46d6-bf2b-7d9d548fc4a4", "Tag": null }, { "CreatedStamp": "/Date(1462120668731+0800)/", "Key": "bd175c2f-248e-40e2-824a-fc75e6f6b21e", "Name": "复式", "ParentKey": "fbbb640d-9ce0-46d6-bf2b-7d9d548fc4a4", "Tag": null } ] }, "msg": "success", "responseCode": { "msgCode": 200, "msgDetail": "OK" }, "serverTime": "2016-05-02 00:37:48", "success": true }
REQUEST 5:
{ "action":"getDictionarys", "token":"9fbea6e8-ffdc-4240-9cc2-743105b12721", "Tag":"AirConditionBrand" }
RESPONSE 5:
{ "data": { "List": [ { "CreatedStamp": "/Date(1462120743324+0800)/", "Key": "fbcddf58-954e-4249-9b95-4e94d3efa589", "Name": "金立", "ParentKey": "03e98553-d65b-485b-8c14-1e13ee8e2793", "Tag": null }, { "CreatedStamp": "/Date(1462120743324+0800)/", "Key": "be1e3057-7fae-4064-9fdd-ebf97264e78e", "Name": "格力", "ParentKey": "03e98553-d65b-485b-8c14-1e13ee8e2793", "Tag": null } ] }, "msg": "success", "responseCode": { "msgCode": 200, "msgDetail": "OK" }, "serverTime": "2016-05-02 00:39:03", "success": true }
REQUEST 6:
{ "action":"getDictionarys", "token":"9fbea6e8-ffdc-4240-9cc2-743105b12721", "parentKey":"fbbb640d-9ce0-46d6-bf2b-7d9d548fc4a4" }
RESPONSE 6:
{ "data": { "List": [ { "CreatedStamp": "/Date(1462120817777+0800)/", "Key": "f1cf0d0e-f991-4bbf-8e48-23004786ed8c", "Name": "平层", "ParentKey": "fbbb640d-9ce0-46d6-bf2b-7d9d548fc4a4", "Tag": null }, { "CreatedStamp": "/Date(1462120817777+0800)/", "Key": "fa2ad2e1-818e-49ff-838b-7a484adf5ccd", "Name": "别墅", "ParentKey": "fbbb640d-9ce0-46d6-bf2b-7d9d548fc4a4", "Tag": null }, { "CreatedStamp": "/Date(1462120817777+0800)/", "Key": "d9c88ccc-80dd-462b-aef2-d00c9da6fafb", "Name": "小工装", "ParentKey": "fbbb640d-9ce0-46d6-bf2b-7d9d548fc4a4", "Tag": null }, { "CreatedStamp": "/Date(1462120817777+0800)/", "Key": "bd175c2f-248e-40e2-824a-fc75e6f6b21e", "Name": "复式", "ParentKey": "fbbb640d-9ce0-46d6-bf2b-7d9d548fc4a4", "Tag": null } ] }, "msg": "success", "responseCode": { "msgCode": 200, "msgDetail": "OK" }, "serverTime": "2016-05-02 00:40:17", "success": true }
时间: 2024-10-05 11:11:53