|
|
# 开启物理分类
|
|
|
|
|
|
> 接口名: `/product/publishProductSort`
|
|
|
|
|
|
### 方法
|
|
|
|
|
|
> POST JSONRAW
|
|
|
|
|
|
|
|
|
### 入参
|
|
|
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|长度限制|
|
|
|
|--------|----|----|----|--------|--------|
|
|
|
|param|number|品类的Id|品类的ID|Y|5
|
|
|
---------------------
|
|
|
|
|
|
### 对应SQL的操作库表
|
|
|
|
|
|
```xml
|
|
|
<update id="updateById" parameterType="com.yohobuy.platform.dal.product.model.ProductSort" >
|
|
|
update product_sort set status = #{status,jdbcType=TINYINT} where id = #{id,jdbcType=SMALLINT}
|
|
|
</update>
|
|
|
```
|
|
|
|
|
|
### 错误编码
|
|
|
|
|
|
-------------------------
|
|
|
|错误码code|消息|说明|
|
|
|
|--------|----|----|
|
|
|
|200| 打开分类成功| |
|
|
|
|500| 操作失败!| |
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": 200,
|
|
|
"data": [],
|
|
|
"md5": "d751713988987e9331980363e24189ce",
|
|
|
"message": "打开分类成功"
|
|
|
}
|
|
|
|
|
|
``` |
|
|
\ No newline at end of file |
...
|
...
|
|