Showing
1 changed file
with
68 additions
and
68 deletions
1 | -## 编辑时plustar分类详情接口 | ||
2 | - | ||
3 | -> 接口名: '/guang/plustar/getDetail' | ||
4 | - | ||
5 | -### 方法 | ||
6 | - | ||
7 | -> POST JSONRAW | ||
8 | - | ||
9 | -### 入参 | ||
10 | - | ||
11 | -------------------------- | ||
12 | -|属性名称|类型|例子|说明|是否必填|范围| | ||
13 | -|--------|----|----|----|----|---- | ||
14 | -|id|int|43|分类id|是|| | ||
15 | ---------------------- | ||
16 | - | ||
17 | -### 对应SQL的操作库表 | ||
18 | - | ||
19 | -```xml | ||
20 | - <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" > | ||
21 | - select | ||
22 | - <include refid="Base_Column_List" /> | ||
23 | - from brand_relation | ||
24 | - where id = #{id,jdbcType=INTEGER} | ||
25 | - </select> | ||
26 | - | ||
27 | - <select id="selectByRelationId" resultMap="BaseResultMap" parameterType="java.lang.Integer" > | ||
28 | - select | ||
29 | - <include refid="Base_Column_List" /> | ||
30 | - from brand_img | ||
31 | - where relation_id = #{relationId,jdbcType=INTEGER} | ||
32 | - </select> | ||
33 | -``` | ||
34 | - | ||
35 | -### 错误编码 | ||
36 | - | ||
37 | -------------------------- | ||
38 | -|错误码code|消息|说明| | ||
39 | -|--------|----|----| | ||
40 | -|400| plustar is null| | | ||
41 | -|400| 没有这个品牌| | | ||
42 | -|200| |操作成功| | ||
43 | - | ||
44 | -### 返回 | ||
45 | - | ||
46 | -``` json | ||
47 | -{ | ||
48 | - "code":200, | ||
49 | - "message":"操作成功", | ||
50 | - "data": { | ||
51 | - "id": "438", | ||
52 | - "bannerTitle": "达到的说法的广泛丰厚的",//banner标题 | ||
53 | - "brandId": "30", //品牌id | ||
54 | - "brandType": "1", //频道id | ||
55 | - "categoryName": "潮流经典", //频道名称 | ||
56 | - "coverImg": "http://img11.static.yhbimg.com/yhb-img01/2016/03/28/08/01b4288ca7b208d74dc0ccfdc25c767ede.jpg?imageView/{mode}/w/{width}/h/{height}",//封面图 | ||
57 | - "bannerImg": [ | ||
58 | - "http://img12.static.yhbimg.com/yhb-img01/2016/03/28/08/02a4da74a108380e93a33dc5eb91b42f2f.jpg?imageView/2/w/300/h/300" | ||
59 | - ], //banner图 | ||
60 | - "gender": "1", //性别 1.男2.女3.通用 | ||
61 | - "isDifferent": "1", //是否区分男女 1区分 2不区分 | ||
62 | - "isRecommend": "2", //是否推荐 1推荐 2不推荐 | ||
63 | - "orderBy": "2", //排序 | ||
64 | - "status": "1", //是否可用 1可用 2不可用 | ||
65 | - "updateTime": 1459241471 //修改时间 | ||
66 | - } | ||
67 | -} | ||
68 | - | 1 | +## 编辑时plustar分类详情接口 |
2 | + | ||
3 | +> 接口名: '/guang/plustar/getDetail' | ||
4 | + | ||
5 | +### 方法 | ||
6 | + | ||
7 | +> POST JSONRAW | ||
8 | + | ||
9 | +### 入参 | ||
10 | + | ||
11 | +------------------------- | ||
12 | +|属性名称|类型|例子|说明|是否必填|范围| | ||
13 | +|--------|----|----|----|----|---- | ||
14 | +|id|int|43|分类id|是|1-10| | ||
15 | +--------------------- | ||
16 | + | ||
17 | +### 对应SQL的操作库表 | ||
18 | + | ||
19 | +```xml | ||
20 | + <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" > | ||
21 | + select | ||
22 | + <include refid="Base_Column_List" /> | ||
23 | + from brand_relation | ||
24 | + where id = #{id,jdbcType=INTEGER} | ||
25 | + </select> | ||
26 | + | ||
27 | + <select id="selectByRelationId" resultMap="BaseResultMap" parameterType="java.lang.Integer" > | ||
28 | + select | ||
29 | + <include refid="Base_Column_List" /> | ||
30 | + from brand_img | ||
31 | + where relation_id = #{relationId,jdbcType=INTEGER} | ||
32 | + </select> | ||
33 | +``` | ||
34 | + | ||
35 | +### 错误编码 | ||
36 | + | ||
37 | +------------------------- | ||
38 | +|错误码code|消息|说明| | ||
39 | +|--------|----|----| | ||
40 | +|400| plustar is null| | | ||
41 | +|400| 没有这个品牌| | | ||
42 | +|200| |操作成功| | ||
43 | + | ||
44 | +### 返回 | ||
45 | + | ||
46 | +``` json | ||
47 | +{ | ||
48 | + "code":200, | ||
49 | + "message":"操作成功", | ||
50 | + "data": { | ||
51 | + "id": "438", | ||
52 | + "bannerTitle": "达到的说法的广泛丰厚的",//banner标题 | ||
53 | + "brandId": "30", //品牌id | ||
54 | + "brandType": "1", //频道id | ||
55 | + "categoryName": "潮流经典", //频道名称 | ||
56 | + "coverImg": "http://img11.static.yhbimg.com/yhb-img01/2016/03/28/08/01b4288ca7b208d74dc0ccfdc25c767ede.jpg?imageView/{mode}/w/{width}/h/{height}",//封面图 | ||
57 | + "bannerImg": [ | ||
58 | + "http://img12.static.yhbimg.com/yhb-img01/2016/03/28/08/02a4da74a108380e93a33dc5eb91b42f2f.jpg?imageView/2/w/300/h/300" | ||
59 | + ], //banner图 | ||
60 | + "gender": "1", //性别 1.男2.女3.通用 | ||
61 | + "isDifferent": "1", //是否区分男女 1区分 2不区分 | ||
62 | + "isRecommend": "2", //是否推荐 1推荐 2不推荐 | ||
63 | + "orderBy": "2", //排序 | ||
64 | + "status": "1", //是否可用 1可用 2不可用 | ||
65 | + "updateTime": 1459241471 //修改时间 | ||
66 | + } | ||
67 | +} | ||
68 | + | ||
69 | ``` | 69 | ``` |
-
Please register or login to post a comment