简要描述:
更新指定文章内容
涉及到的数据表:
enet_cms_user_info // 用户信息(token来源)
enet_cms_article
请求URL:
http://localhost:8081/service/api/cms/category/article/update
请求方式:
- POST
- 参数 - curl -POSThttp://localhost:8081/service/api/cms/category/article/update?accessKey=mini_profile__app6546d23ef636e_a449006c-a570-4ec5-9082-179660a795c3&userFlag=5d55e70ee071a533b06770291f388eb0_357表头:Content-Type:application/jsonURL参数:| 参数名 | 类型 | 说明 | | —- | —- | —- | | accessKey | String | 用户token | | userFlag | String | 用户唯一标识 |
 
- curl -POST
- 
请求参数:| 参数名 | 是否必须 | 类型 | 说明 | | —- | —- | —- | —- | | id | false | Long | 文章ID,默认主键自增 | | categoryId | true | Integer | 栏目ID | | title | true | String | 标题 | | subTitle | true | String | 副标题 | | content | true | String | 标题 | | url | true | String | 详情URL | | img | true | String | 图片, 多张图片以逗号分隔 | | createTime | false | Date | 创建时间,默认当前时间 | | updateTime | false | Date | 更新时间,默认当前更新时间 | 
输入实例:
{
    "article": {
        "id": 4,
        "categoryId": 1,
        "title": "xxxx1",
        "subTitle": "ze",
        "content": "xxxxx1",
        "url": "baidu.cn",
        "img": "xxxx.jpg",
        "createTime": "2021-03-10",
        "updateTime": "2021-03-10"
    }
}
返回参数:
| 参数名 | 是否必须 | 类型 | 说明 | 
|---|---|---|---|
| msg | true | String | 错误信息 | 
| code | true | String | 错误代码 -0正确 -1002插入数据库出错 | 
返回示例:
{
    "msg": "ok",
    "code": 0
}
 
                         
                                

