文档
测试

编辑新闻资讯

POST
/admin/system/articles/api/updateitem

接口描述

根据id编辑新闻资讯信息

请求头

参数名
类型
描述
必填
Cookie
string
必填

请求参数

参数名
类型
描述
必填
id
int
示例:0
可选
title
string
文章标题。示例:test
必填
articleid
string
文章编号。示例:002
必填
subtitle
string
文章副标题。示例:副标题
可选
articletype
string
类型,数据字典配置的。示例:产品动态
必填
imagepath
string
示例:https://fdl-oss.oss-cn-hangzhou.aliyuncs.com/tmp/notices/2021/07/22/notices_2021-07-22_11-00-04_33492.jpg
可选
file
string
示例:无用字段
可选
videopath
string
视频地址或视频ID
可选
content
string
详细内容。
必填
enabled
int
是否启用。示例:0--未启用,1-启用
必填
kind
string
类别:news/faq等定义。示例:news
必填

响应参数

参数名
类型
描述
必填
result
int
0--成功,其他--失败。示例:0
必填
msg
string
提示信息。示例:Success
必填
data
Object
null
必填

说明 / 示例

请求参数示例: ``` { "id": 0, "title": "test", "articleid": "002", "subtitle": "副标题", "articletype": "产品动态", "imagepath": "https://fdl-oss.oss-cn-hangzhou.aliyuncs.com/tmp/notices/2021/07/22/notices_2021-07-22_11-00-04_33492.jpg", "file": "", "videopath": "123123", "content": "<p>123123</p>", "enabled": 0, "kind": "news" } ```