|
|
## 编辑时plustar分类详情接口
|
|
|
|
|
|
> 接口名: '/guang/plustar/getDetail'
|
|
|
|
|
|
### 方法
|
|
|
|
|
|
> POST JSONRAW
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|范围|
|
|
|
|--------|----|----|----|----|----
|
|
|
|id|int|43|分类id|是||
|
|
|
---------------------
|
|
|
|
|
|
### 对应SQL的操作库表
|
|
|
|
|
|
```xml
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from brand_relation
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</select>
|
|
|
|
|
|
<select id="selectByRelationId" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from brand_img
|
|
|
where relation_id = #{relationId,jdbcType=INTEGER}
|
|
|
</select>
|
|
|
```
|
|
|
|
|
|
### 错误编码
|
|
|
|
|
|
-------------------------
|
|
|
|错误码code|消息|说明|
|
|
|
|--------|----|----|
|
|
|
|400| plustar is null| |
|
|
|
|400| 没有这个品牌| |
|
|
|
|200| |操作成功|
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code":200,
|
|
|
"message":"操作成功",
|
|
|
"data": {
|
|
|
"id": "438",
|
|
|
"bannerTitle": "达到的说法的广泛丰厚的",//banner标题
|
|
|
"brandId": "30", //品牌id
|
|
|
"brandType": "1", //频道id
|
|
|
"categoryName": "潮流经典", //频道名称
|
|
|
"coverImg": "http://img11.static.yhbimg.com/yhb-img01/2016/03/28/08/01b4288ca7b208d74dc0ccfdc25c767ede.jpg?imageView/{mode}/w/{width}/h/{height}",//封面图
|
|
|
"bannerImg": [
|
|
|
"http://img12.static.yhbimg.com/yhb-img01/2016/03/28/08/02a4da74a108380e93a33dc5eb91b42f2f.jpg?imageView/2/w/300/h/300"
|
|
|
], //banner图
|
|
|
"gender": "1", //性别 1.男2.女3.通用
|
|
|
"isDifferent": "1", //是否区分男女 1区分 2不区分
|
|
|
"isRecommend": "2", //是否推荐 1推荐 2不推荐
|
|
|
"orderBy": "2", //排序
|
|
|
"status": "1", //是否可用 1可用 2不可用
|
|
|
"updateTime": 1459241471 //修改时间
|
|
|
}
|
|
|
}
|
|
|
|
|
|
## 编辑时plustar分类详情接口
|
|
|
|
|
|
> 接口名: '/guang/plustar/getDetail'
|
|
|
|
|
|
### 方法
|
|
|
|
|
|
> POST JSONRAW
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|范围|
|
|
|
|--------|----|----|----|----|----
|
|
|
|id|int|43|分类id|是|1-10|
|
|
|
---------------------
|
|
|
|
|
|
### 对应SQL的操作库表
|
|
|
|
|
|
```xml
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from brand_relation
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
</select>
|
|
|
|
|
|
<select id="selectByRelationId" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
from brand_img
|
|
|
where relation_id = #{relationId,jdbcType=INTEGER}
|
|
|
</select>
|
|
|
```
|
|
|
|
|
|
### 错误编码
|
|
|
|
|
|
-------------------------
|
|
|
|错误码code|消息|说明|
|
|
|
|--------|----|----|
|
|
|
|400| plustar is null| |
|
|
|
|400| 没有这个品牌| |
|
|
|
|200| |操作成功|
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code":200,
|
|
|
"message":"操作成功",
|
|
|
"data": {
|
|
|
"id": "438",
|
|
|
"bannerTitle": "达到的说法的广泛丰厚的",//banner标题
|
|
|
"brandId": "30", //品牌id
|
|
|
"brandType": "1", //频道id
|
|
|
"categoryName": "潮流经典", //频道名称
|
|
|
"coverImg": "http://img11.static.yhbimg.com/yhb-img01/2016/03/28/08/01b4288ca7b208d74dc0ccfdc25c767ede.jpg?imageView/{mode}/w/{width}/h/{height}",//封面图
|
|
|
"bannerImg": [
|
|
|
"http://img12.static.yhbimg.com/yhb-img01/2016/03/28/08/02a4da74a108380e93a33dc5eb91b42f2f.jpg?imageView/2/w/300/h/300"
|
|
|
], //banner图
|
|
|
"gender": "1", //性别 1.男2.女3.通用
|
|
|
"isDifferent": "1", //是否区分男女 1区分 2不区分
|
|
|
"isRecommend": "2", //是否推荐 1推荐 2不推荐
|
|
|
"orderBy": "2", //排序
|
|
|
"status": "1", //是否可用 1可用 2不可用
|
|
|
"updateTime": 1459241471 //修改时间
|
|
|
}
|
|
|
}
|
|
|
|
|
|
``` |
|
|
\ No newline at end of file |
...
|
...
|
|