resourcesEditPage.md
6.94 KB
资源管理编辑页面
接口名: `/resources/resourcesEditPage
方法
POST JSONRAW
入参
属性名称 | 类型 | 例子 | 说明 | 是否必填 | 长度限制 |
---|---|---|---|---|---|
id | int | 8 | 资源id | 是 | 11 |
对应SQL的操作库表
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
select
<include refid="Base_Column_List" />
from resources
where id = #{id,jdbcType=INTEGER}
</select>
<select id="selectAll" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from platform order by create_time DESC
</select>
<select id="selectAll" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from resources_sort order by create_time desc
</select>
错误编码
错误码code | 消息 | 说明 |
---|---|---|
200 | 操作成功 | |
400 | 资源id不能为空! | |
404 | 资源id传递错误! |
返回
{
"code": 200,
"data": {
"plat_list": [
{
"createTime": 1432882973,
"platformFlag": "hf",
"platformId": 9,
"platformName": "wap",
"status": 1
},
{
"createTime": 1431670386,
"platformFlag": "ipad",
"platformId": 6,
"platformName": "yohoipad",
"status": 1
},
{
"createTime": 1430735334,
"platformId": 5,
"platformName": "web",
"status": 1
},
{
"createTime": 1430300615,
"platformFlag": "iphone",
"platformId": 1,
"platformName": "yohoApp",
"status": 1
}
],
"row": {
"code": "201504091403001",
"createTime": 1430378310,
"id": 8,
"matchCode": "",
"name": "男首页",
"platformId": 1,
"sortId": 2
},
"sort_list": [
{
"createTime": 1452049877,
"platformId": 1,
"sortId": 50,
"sortName": "全球购",
"status": 1
},
{
"createTime": 1450944005,
"platformId": 1,
"sortId": 42,
"sortName": "yoho币页面banner",
"status": 1
},
{
"createTime": 1450943992,
"platformId": 1,
"sortId": 40,
"sortName": "查看物流banner",
"status": 1
},
{
"createTime": 1450943978,
"platformId": 1,
"sortId": 38,
"sortName": "付款成功页banner",
"status": 1
},
{
"createTime": 1450943963,
"platformId": 1,
"sortId": 36,
"sortName": "自定义二级频道",
"status": 1
},
{
"createTime": 1450943915,
"platformId": 1,
"sortId": 34,
"sortName": "个人中心文字公告",
"status": 1
},
{
"createTime": 1446458182,
"platformId": 5,
"sortId": 31,
"sortName": "Web头部通栏广告位",
"status": 1
},
{
"createTime": 1445244510,
"platformId": 1,
"sortId": 29,
"sortName": "维护公告",
"status": 1
},
{
"createTime": 1444893497,
"platformId": 1,
"sortId": 27,
"sortName": "支付选择页",
"status": 1
},
{
"createTime": 1440552908,
"platformId": 1,
"sortId": 25,
"sortName": "新品到着",
"status": 1
},
{
"createTime": 1440127831,
"platformId": 5,
"sortId": 23,
"sortName": "Sale页",
"status": 1
},
{
"createTime": 1440122914,
"platformId": 1,
"sortId": 21,
"sortName": "Top100",
"status": 1
},
{
"createTime": 1439542927,
"platformId": 5,
"sortId": 19,
"sortName": "导航图片",
"status": 1
},
{
"createTime": 1434610832,
"platformId": 1,
"sortId": 15,
"sortName": "创意生活",
"status": 1
},
{
"createTime": 1434536399,
"platformId": 1,
"sortId": 13,
"sortName": "品牌一览",
"status": 1
},
{
"createTime": 1431594900,
"platformId": 1,
"sortId": 12,
"sortName": "广告位banner",
"status": 1
},
{
"createTime": 1431509146,
"platformId": 1,
"sortId": 11,
"sortName": "童装kids",
"status": 1
},
{
"createTime": 1431308249,
"platformId": 1,
"sortId": 8,
"sortName": "启动页轮播图",
"status": 1
},
{
"createTime": 1430912765,
"platformId": 1,
"sortId": 7,
"sortName": "分类哦",
"status": 1
},
{
"createTime": 1430912736,
"platformId": 1,
"sortId": 6,
"sortName": "落地页模板",
"status": 1
},
{
"createTime": 1430809371,
"platformId": 1,
"sortId": 5,
"sortName": "Plus/Star",
"status": 1
},
{
"createTime": 1430581166,
"platformId": 1,
"sortId": 4,
"sortName": "逛列表页",
"status": 1
},
{
"createTime": 1430364726,
"platformId": 1,
"sortId": 3,
"sortName": "女首",
"status": 1
},
{
"createTime": 1430304722,
"platformId": 1,
"sortId": 2,
"sortName": "男首",
"status": 1
}
]
},
"md5": "3499cae6e0a79d8281b68e2bf435ee71",
"message": "操作成功"
}