...
|
...
|
@@ -19,35 +19,81 @@ http://localhost:8080/platform/PayManageController/findPayManageList |
|
|
|
|
|
code为200即为成功,否则是失败。 响应JSON格式如下所示:
|
|
|
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data":{
|
|
|
"currentPage":1
|
|
|
"rows":[{"id": 2,
|
|
|
"payName": "支付宝",
|
|
|
"recommendOrderPage":1,
|
|
|
"recommendWords":"",
|
|
|
"sortNumber":2,
|
|
|
"recommendText1":"",
|
|
|
"recommendText2":"",
|
|
|
"status":1,
|
|
|
"createTime":"";
|
|
|
"updateTime":""},{
|
|
|
"id": 3,
|
|
|
"payName": "微信",
|
|
|
"recommendOrderPage":1,
|
|
|
"recommendWords":"",
|
|
|
"sortNumber":1,
|
|
|
"recommendText1":"",
|
|
|
"recommendText2":"",
|
|
|
"status":1,
|
|
|
"createTime":"";
|
|
|
"updateTime":""}],
|
|
|
"pageSize":10,
|
|
|
"total":10,
|
|
|
"totalPage":1
|
|
|
},
|
|
|
"md5": "d751713988987e9331980363e24189ce",
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"list": [
|
|
|
{
|
|
|
"createTime": "2016-07-15 10:43:45",
|
|
|
"id": 20,
|
|
|
"list": [],
|
|
|
"page": 0,
|
|
|
"payName": "QQ钱包",
|
|
|
"recommendOrderPage": 0,
|
|
|
"recommendText1": "",
|
|
|
"recommendWords": "",
|
|
|
"size": 0,
|
|
|
"sortNumber": 4,
|
|
|
"status": 1,
|
|
|
"total": 0,
|
|
|
"totalPage": 0,
|
|
|
"updateTime": ""
|
|
|
},
|
|
|
{
|
|
|
"createTime": "2016-07-14 19:35:24",
|
|
|
"id": 10,
|
|
|
"list": [],
|
|
|
"page": 0,
|
|
|
"payName": "花趴",
|
|
|
"recommendOrderPage": 0,
|
|
|
"recommendText1": "",
|
|
|
"recommendWords": "",
|
|
|
"size": 0,
|
|
|
"sortNumber": 3,
|
|
|
"status": 1,
|
|
|
"total": 0,
|
|
|
"totalPage": 0,
|
|
|
"updateTime": ""
|
|
|
},
|
|
|
{
|
|
|
"createTime": "2016-06-24 20:47:34",
|
|
|
"id": 2,
|
|
|
"list": [],
|
|
|
"page": 0,
|
|
|
"payName": "支付宝",
|
|
|
"recommendOrderPage": 1,
|
|
|
"recommendText1": "",
|
|
|
"recommendWords": "推荐文案",
|
|
|
"size": 0,
|
|
|
"sortNumber": 6,
|
|
|
"status": 1,
|
|
|
"total": 0,
|
|
|
"totalPage": 0,
|
|
|
"updateTime": "2016-07-15 14:13:55"
|
|
|
},
|
|
|
{
|
|
|
"createTime": "2016-06-24 20:47:34",
|
|
|
"id": 4,
|
|
|
"list": [],
|
|
|
"page": 0,
|
|
|
"payName": "微信",
|
|
|
"recommendOrderPage": 0,
|
|
|
"recommendText1": "微信不错",
|
|
|
"recommendText2": "微信不错",
|
|
|
"recommendWords": "",
|
|
|
"size": 0,
|
|
|
"sortNumber": 1,
|
|
|
"status": 1,
|
|
|
"total": 0,
|
|
|
"totalPage": 0,
|
|
|
"updateTime": "2016-06-24 20:47:34"
|
|
|
}
|
|
|
],
|
|
|
"page": 1,
|
|
|
"size": 10,
|
|
|
"total": 4,
|
|
|
"totalPage": 1
|
|
|
},
|
|
|
"message": "操作成功"
|
|
|
}
|
|
|
|
...
|
...
|
@@ -79,21 +125,37 @@ http://localhost:8080/platform/PayManageController/findPayInfoById |
|
|
{
|
|
|
"code": 200,
|
|
|
"data": {
|
|
|
"id": 2,
|
|
|
"payName": "支付宝",
|
|
|
"recommendOrderPage":1,
|
|
|
"recommendWords":"",
|
|
|
"sortNumber":2,
|
|
|
"recommendText1":"",
|
|
|
"recommendText2":"",
|
|
|
"status":1,
|
|
|
"createTime":"";
|
|
|
"updateTime":""
|
|
|
},
|
|
|
"md5": "d751713988987e9331980363e24189ce",
|
|
|
"createTime": "2016-06-24 20:47:34",
|
|
|
"id": 2,
|
|
|
"list": [],
|
|
|
"page": 0,
|
|
|
"payName": "支付宝",
|
|
|
"recommendOrderPage": 1,
|
|
|
"recommendText1": "",
|
|
|
"recommendWords": "推荐文案",
|
|
|
"size": 0,
|
|
|
"sortNumber": 6,
|
|
|
"status": 1,
|
|
|
"total": 0,
|
|
|
"totalPage": 0,
|
|
|
"updateTime": "2016-07-15 14:13:55"
|
|
|
},
|
|
|
"message": "操作成功"
|
|
|
}
|
|
|
|
|
|
其他相应
|
|
|
|
|
|
{
|
|
|
"code": 201,
|
|
|
"message": "请求查询id为空"
|
|
|
}
|
|
|
|
|
|
{
|
|
|
"code": 201,
|
|
|
"message": "请求查询id不存在"
|
|
|
}
|
|
|
|
|
|
|
|
|
**3、新增支付方式**
|
|
|
|
|
|
新增支付方式(/PayManageController/createPayMode)
|
...
|
...
|
@@ -117,22 +179,48 @@ http://localhost:8080/platform/PayManageController/findPayInfoById |
|
|
http://localhost:8080/platform/PayManageController/createPayMode
|
|
|
|
|
|
{
|
|
|
"payName":"支付宝",
|
|
|
"payName":"银联支付",
|
|
|
"recommendOrderPage":1,
|
|
|
"recommendWords":"推荐文案",
|
|
|
"sortNumber":2,
|
|
|
"sortNumber":7,
|
|
|
"recommendText1":""
|
|
|
}
|
|
|
|
|
|
**响应**
|
|
|
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": {},
|
|
|
"md5": "d751713988987e9331980363e24189ce",
|
|
|
"message": "操作成功"
|
|
|
"code": 200,
|
|
|
"message": "操作成功"
|
|
|
}
|
|
|
|
|
|
其他响应情况
|
|
|
|
|
|
{
|
|
|
"code": 201,
|
|
|
"message": "支付方式名称为空"
|
|
|
}
|
|
|
|
|
|
{
|
|
|
"code": 202,
|
|
|
"message": "该支付方式名称已存在"
|
|
|
}
|
|
|
|
|
|
{
|
|
|
"code": 201,
|
|
|
"message": "前端排序值无效"
|
|
|
}
|
|
|
|
|
|
{
|
|
|
"code": 201,
|
|
|
"message": "该前端排序值已存在"
|
|
|
}
|
|
|
|
|
|
{
|
|
|
"code": 201,
|
|
|
"message": "推荐文案为空"
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
**4、编辑支付方式详情**
|
|
|
|
...
|
...
|
@@ -167,10 +255,30 @@ http://localhost:8080/platform/PayManageController/updatePayInfoById |
|
|
**响应**
|
|
|
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": {},
|
|
|
"md5": "d751713988987e9331980363e24189ce",
|
|
|
"message": "操作成功"
|
|
|
"code": 200,
|
|
|
"message": "操作成功"
|
|
|
}
|
|
|
|
|
|
其他相应
|
|
|
|
|
|
{
|
|
|
"code": 201,
|
|
|
"message": "请求编辑id为空"
|
|
|
}
|
|
|
|
|
|
{
|
|
|
"code": 201,
|
|
|
"message": "前端排序值无效"
|
|
|
}
|
|
|
|
|
|
{
|
|
|
"code": 201,
|
|
|
"message": "该前端排序值已存在"
|
|
|
}
|
|
|
|
|
|
{
|
|
|
"code": 201,
|
|
|
"message": "推荐文案为空"
|
|
|
}
|
|
|
|
|
|
|
...
|
...
|
@@ -197,12 +305,17 @@ http://localhost:8080/platform/PayManageController/openPayModeById |
|
|
**响应**
|
|
|
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": {},
|
|
|
"md5": "d751713988987e9331980363e24189ce",
|
|
|
"message": "操作成功"
|
|
|
"code": 200,
|
|
|
"message": "操作成功"
|
|
|
}
|
|
|
|
|
|
其他响应
|
|
|
|
|
|
{
|
|
|
"code": 201,
|
|
|
"message": "开启请求id为空"
|
|
|
}
|
|
|
|
|
|
|
|
|
**6、关闭支付方式**
|
|
|
|
...
|
...
|
@@ -227,8 +340,13 @@ http://localhost:8080/platform/PayManageController/closePayModeById |
|
|
**响应**
|
|
|
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": {},
|
|
|
"md5": "d751713988987e9331980363e24189ce",
|
|
|
"message": "操作成功"
|
|
|
} |
|
|
\ No newline at end of file |
|
|
"code": 200,
|
|
|
"message": "操作成功"
|
|
|
}
|
|
|
|
|
|
其他响应
|
|
|
|
|
|
{
|
|
|
"code": 201,
|
|
|
"message": "关闭请求id为空"
|
|
|
} |
|
|
\ No newline at end of file |
...
|
...
|
|