文档
测试

updateArticleState(更新文章状态,主要辅助删除功能)

PUT
http://localhost:8081/article/updateArticleState

接口描述

传入要改文章的id,和要改成的状态码

请求参数

参数名
类型
描述
必填
id
Long
必填
state
Integer
必填

响应参数

参数名
类型
描述
必填
RespBean
自定义类
必填

说明 / 示例

```language if (result == 1) { return new RespBean("success", id+"号文章状态变为"+state); } else { return new RespBean("error", "文章状态修改失败!"); } ```