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

getMyReportListV2 我的报价单列表 V2

时间:2016-06-18 10:08:15      阅读:181      评论:0      收藏:0      [点我收藏+]

标签:

http://localhost:2448/api/ashx/service.ashx

POST

request:

技术分享
{
      "action":"getMyReportListV2",
      "token":"4056b02d-912e-4ab5-869d-8e3c34f610f1", 
      "requestData": {
        "PageSize":3,
        "PageIndex":0
    }
}
View Code

response:

技术分享
{
    "data": {
        "List": [
            {
                "AppUserKey": null,
                "ClientProjectAddress": {
                    "Cellphone": null,
                    "IndexNo": 0,
                    "ProjectAddress": "上海市浦东新区玉兰香苑124号669室",
                    "RealName": "赵六"
                },
                "CreatedStamp": "/Date(1466214905419+0800)/",
                "CreatedStampDisplay": "2016-06-18 07:33:30",
                "House": null,
                "ProjectNo": "28",
                "ReportKey": "e7a6afdd-b03a-45d9-8b48-8d1284fc4372",
                "ReportStatus": 1,
                "Summarys": null,
                "TotalBudget": 0
            },
            {
                "AppUserKey": null,
                "ClientProjectAddress": {
                    "Cellphone": null,
                    "IndexNo": 0,
                    "ProjectAddress": "上海市宝山区共富路64号12室",
                    "RealName": "李四"
                },
                "CreatedStamp": "/Date(1466214905420+0800)/",
                "CreatedStampDisplay": "2016-06-17 22:09:13",
                "House": null,
                "ProjectNo": "27",
                "ReportKey": "b6206def-31d8-4ab9-81d2-c294acc09cc1",
                "ReportStatus": 1,
                "Summarys": null,
                "TotalBudget": 0
            },
            {
                "AppUserKey": null,
                "ClientProjectAddress": {
                    "Cellphone": null,
                    "IndexNo": 0,
                    "ProjectAddress": "4456",
                    "RealName": "45"
                },
                "CreatedStamp": "/Date(1466214905420+0800)/",
                "CreatedStampDisplay": "2016-06-17 01:50:33",
                "House": null,
                "ProjectNo": "26",
                "ReportKey": "844305b3-b8a5-4493-9e31-d9036a5288ff",
                "ReportStatus": 1,
                "Summarys": null,
                "TotalBudget": 0
            }
        ],
        "SummaryRecord": {
            "PageIndex": 0,  /* start from 0 */
            "PageSize": 3,
            "TotalPageCount": 4,
            "TotalRecordCount": 11
        }
    },
    "msg": "success",
    "responseCode": {
        "msgCode": 200,
        "msgDetail": "OK"
    },
    "serverTime": "2016-06-18 09:55:05",
    "success": true
}
View Code

 

 

说明:

  1) 原 getMyReportList 马上将被丢弃 (前端功能调通后)

  2) getMyReportListV2  返回结构有变。因功能需求有变动。数据模型被变,所以原来的 API 已经不适合 简单的 MAPPING了; 另外,这次增加了分页功能。

         所以 将原返回的数据,缩进到现在的 List元素中,新增 SummaryRecord 对象,方便前端做分页展示。

  3) request 有变动 (增加了分页功能), PageSize (每页数据) 可以不传,后端默认为10 ; PageIndex (当前页数,从0开始)也可以不传,后端默认是首页。

 

(结束)

getMyReportListV2 我的报价单列表 V2

标签:

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

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