~~~[api]
get:api/v1/website/article/getList
*int:limit=20#每页条数
*int:page=1#页码
int:type=1#类型:0=其他,1=生活,2=保险,3=金融,4=旅游,5=宠物,6=健康,7=医药,8=科技,9=时尚,10=美妆,11=好物,12=美食
string:name#文章名称
<<<
success
{
"status": 20000,
"message": "操作成功!",
"data": {
"list": [
{
"id": 4122,
"name": "What Should You Add To Every Meal?",
"image_id": 10893,
"keywords": "Nutrition",
"description": "These carbohydrates help to make you feel fuller for longer, and help you to eat less. This makes them perfect for weight management.",
"image_to": {
"id": 10893,
"url": "/storage/upload/20221128/vGBjJLTlqjEZQ47Hn7UvDbExXO3WecJqDM6NJCJ2.jpg",
"open": 1,
"http_url": "https://zhongtaiserver.zhongtongtec.com/storage/upload/20221128/vGBjJLTlqjEZQ47Hn7UvDbExXO3WecJqDM6NJCJ2.jpg"
}
}
],
"total": 71
}
}
<<<
error
success
{
"status": 40000,
"message": "失败",
"data": []
}
~~~
## **请求参数说明**
|参数|是否必须|参数类型|说明|
|-|-|-|-|
|limit|是|int|每页条数|
|page|是|int|页码|
|type|否|int|类型:0=其他,1=生活,2=保险,3=金融,4=旅游,5=宠物,6=健康,7=医药,8=科技,9=时尚,10=美妆,11=好物,12=美食|
|name|否|string|文章名称|
## **成功发回参数说明**
|参数|是否必须|参数类型|说明|
|-|-|-|-|
|code|是|int|表示请求后的状态|
|message|是|string|表示请求提示信息|
|data|是|object[]|返回数据|
## **data参数说明**
|参数|是否必须|参数类型|说明|
|-|-|-|-|
|id|是|int|文章ID|
|name|是|string|文章标题|
|keywords|是|string|文章关键词|
|description|是|string|文章描述|
|image_to|是|object|图片内容对象|