|
|
# 删除作者
|
|
|
|
|
|
> 接口名: /guang/author/delAuthor
|
|
|
|
|
|
### 方法
|
|
|
|
|
|
> POST
|
|
|
|
|
|
### 入参
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|长度限制|
|
|
|
|--------|----|----|----|----|----|
|
|
|
|id|Integer|1|ID主键||1-11|
|
|
|
---------------------
|
|
|
|
|
|
|
|
|
### 对应SQL的操作库表
|
|
|
|
|
|
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
|
|
|
delete from author
|
|
|
where uid = #{uid,jdbcType=INTEGER}
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
### 错误编码
|
|
|
|
|
|
-------------------------
|
|
|
|错误码code|消息|说明|
|
|
|
|--------|----|----|
|
|
|
|200|删除成功| |
|
|
|
|400|删除失败| |
|
|
|
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": "200",
|
|
|
"message":"删除成功"
|
|
|
}
|
|
|
```
|
|
|
|
|
|
# 删除作者
|
|
|
|
|
|
> 接口名: /guang/author/delAuthor
|
|
|
|
|
|
### 方法
|
|
|
|
|
|
> POST JSONRAW
|
|
|
|
|
|
### 入参
|
|
|
-------------------------
|
|
|
|属性名称|类型|例子|说明|是否必填|长度限制|
|
|
|
|--------|----|----|----|----|----|
|
|
|
|id|Integer|1|ID主键|是|1-11|
|
|
|
---------------------
|
|
|
|
|
|
|
|
|
### 对应SQL的操作库表
|
|
|
|
|
|
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
|
|
|
delete from author
|
|
|
where uid = #{uid,jdbcType=INTEGER}
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
### 错误编码
|
|
|
|
|
|
-------------------------
|
|
|
|错误码code|消息|说明|
|
|
|
|--------|----|----|
|
|
|
|200|删除成功| |
|
|
|
|400|删除失败| |
|
|
|
|
|
|
|
|
|
### 返回
|
|
|
|
|
|
``` json
|
|
|
{
|
|
|
"code": "200",
|
|
|
"message":"删除成功"
|
|
|
}
|
|
|
```
|
|
|
|
...
|
...
|
|