Showing
1 changed file
with
47 additions
and
0 deletions
api-doc/product/addSize.md
0 → 100644
1 | +# 添加尺码接口 | ||
2 | + | ||
3 | +> 接口名: `/product/addSize` | ||
4 | + | ||
5 | +### 方法 | ||
6 | + | ||
7 | +> POST JSONRAW | ||
8 | + | ||
9 | +### 入参 | ||
10 | + | ||
11 | +------------------------- | ||
12 | +|属性名称|类型|例子|说明|是否必填|长度限制| | ||
13 | +|--------|----|----|---|----|--------| | ||
14 | +|sizeName|string|L|名称|是|10 | ||
15 | + | ||
16 | + | ||
17 | + | ||
18 | +### 对应SQL的操作库表 | ||
19 | + | ||
20 | +```xml | ||
21 | + <insert id="insert" parameterType="com.yohobuy.platform.dal.product.model.Size" > | ||
22 | + insert into size (id, size_name, sort_id, | ||
23 | + attribute_id, order_by, create_time, | ||
24 | + update_time) | ||
25 | + values (#{id,jdbcType=SMALLINT}, #{sizeName,jdbcType=VARCHAR}, #{sortId,jdbcType=SMALLINT}, | ||
26 | + #{attributeId,jdbcType=VARCHAR}, #{orderBy,jdbcType=INTEGER}, #{createTime,jdbcType=INTEGER}, | ||
27 | + #{updateTime,jdbcType=INTEGER}) | ||
28 | + </insert> | ||
29 | +``` | ||
30 | + | ||
31 | +### 错误编码 | ||
32 | + | ||
33 | +------------------------- | ||
34 | +|错误码code|消息|说明| | ||
35 | +|--------|----|----| | ||
36 | +|200| 添加成功!| | | ||
37 | +|400| 操作失败!| | | ||
38 | + | ||
39 | +### 返回 | ||
40 | + | ||
41 | +``` json | ||
42 | +{ | ||
43 | + "code":200, | ||
44 | + "message":"添加成功!" | ||
45 | +} | ||
46 | + | ||
47 | +``` |
-
Please register or login to post a comment