展会新闻列表

HTTP Request

GET /api/admin/informations

HEADERS

字段名 是否必填 描述
ACCESS-TOKEN true 授权token(aPaas提供)

URL Parameters

字段名 必填 描述
query 查询
category_id 分类
created_at_start 创建开始时间
created_at_end 创建结束时间
web_name 资讯来源
status 上架状态(未上架: 0, 已上架: 1)
top 是否置顶 (否: 0, 是: 1)
page 页码
per_page 每页的数量

返回数据

{
    "code": 0,
    "message": "success",
    "remark": "成功",
    "data": {
        "total_count": 1,
        "total_pages": 1,
        "next_page": null,
        "prev_page": null,
        "current_page": 1,
        "per_page": 15,
        "page": 1,
        "models": [
            {
                "id": 2,
                "title": "中国婚博会北京站,将于本周末3月9-10日开幕,快来免费领票!", // 资讯标题
                "content": "号外!号外!北京婚博会2024年3月9-10日在北京国家会议中心盛大开幕。结婚,你要的大牌商家都在这里!!还能省下不少钱哦,在备婚的情侣,一定不要错过!", // 资讯内容
                "hot_value": null,
                "tags": [
                    "中国婚博会"
                ],
                "release_at": "2024-03-08T17:13:07.116+08:00",
                "created_at": "2024-03-08T17:13:07.116+08:00", // 创建时间
                "updated_at": "2024-03-08T17:13:07.116+08:00", // 最后一次编辑时间
                "editor": "中国婚博会",
                "category_id": 1,
                "category": "展会资讯", // 资讯类型
                "logo": "xxxxx", // logo
                "second_industry_id": 3,
                "second_industry": {
                    "name": "安防"
                },
                "pid": null,
                "published_at": "2024-03-08T17:13:07.116+08:00", // 上架时间
                "creator": { // 创建人
                    "id": 1,
                    "name": "xxxx"
                }
            }
        ]
    }
}

创建展会新闻

HTTP Request

POST /api/admin/informations

HEADERS

字段名 是否必填 描述
ACCESS-TOKEN true 授权token(aPaas提供)

URL Parameters

字段名 必填 描述

Body Parameters

字段名 是否必填 描述
information 展会新闻

请求正文

{
    "information": {
        "title": "中国婚博会北京站,将于本周末3月9-10日开幕,快来免费领票!",
        "content": "号外!号外!北京婚博会2024年3月9-10日在北京国家会议中心盛大开幕。结婚,你要的大牌商家都在这里!!还能省下不少钱哦,在备婚的情侣,一定不要错过!",
        "hot_value": 33,
        "tags": [
            "中国婚博会"
        ],
        "release_at": "2024-03-08T17:13:07.116+08:00",
        "editor": "中国婚博会",
        "category_id": 1,
        "category": "展会资讯",
        "second_industry_id": 3,
        "pid": null,
        "published_at": "2024-03-08T17:13:07.116+08:00",
        "logo": "xxx"
    }
}

返回数据

{
    "code": 0,
    "message": "success",
    "remark": "成功",
    "data": {
        "id": 1,
        "title": "中国婚博会北京站,将于本周末3月9-10日开幕,快来免费领票!",
        "content": "号外!号外!北京婚博会2024年3月9-10日在北京国家会议中心盛大开幕。结婚,你要的大牌商家都在这里!!还能省下不少钱哦,在备婚的情侣,一定不要错过!",
        "hot_value": 33,
        "tags": [
            "中国婚博会"
        ],
        "release_at": "2024-03-08T17:13:07.116+08:00",
        "editor": "中国婚博会",
        "category_id": 1,
        "second_industry_id": 3,
        "second_industry": {
            "name": "安防"
        },
        "pid": null,
        "published_at": "2024-03-08T17:13:07.116+08:00",
        "logo": "xxx"
    }
}

展会新闻详情

HTTP Request

GET /api/admin/informations/:id

HEADERS

字段名 是否必填 描述
ACCESS-TOKEN true 授权token(aPaas提供)

URL Parameters

字段名 必填 描述

返回数据

{
    "code": 0,
    "message": "success",
    "remark": "成功",
    "data": {
        "id": 1,
        "title": "中国婚博会北京站,将于本周末3月9-10日开幕,快来免费领票!",
        "content": "号外!号外!北京婚博会2024年3月9-10日在北京国家会议中心盛大开幕。结婚,你要的大牌商家都在这里!!还能省下不少钱哦,在备婚的情侣,一定不要错过!",
        "hot_value": 33,
        "tags": [
            "中国婚博会"
        ],
        "release_at": "2024-03-08T17:13:07.116+08:00",
        "editor": "中国婚博会",
        "category_id": 1,
        "category": "展会资讯",
        "second_industry_id": 3,
        "second_industry": {
            "name": "安防"
        },
        "pid": null,
        "published_at": "2024-03-08T17:13:07.116+08:00",
        "logo": "xxx"
    }
}

更新展会新闻

HTTP Request

PUT /api/admin/informations/:id

HEADERS

字段名 是否必填 描述
ACCESS-TOKEN true 授权token(aPaas提供)

URL Parameters

字段名 必填 描述

Body Parameters

字段名 是否必填 描述
information 展馆

请求正文

{
    "information": {
        "title": "中国婚博会北京站,将于本周末3月9-10日开幕,快来免费领票!",
        "content": "号外!号外!北京婚博会2024年3月9-10日在北京国家会议中心盛大开幕。结婚,你要的大牌商家都在这里!!还能省下不少钱哦,在备婚的情侣,一定不要错过!",
        "hot_value": 33,
        "tags": [
            "中国婚博会"
        ],
        "release_at": "2024-03-08T17:13:07.116+08:00",
        "editor": "中国婚博会",
        "category_id": 1,
        "second_industry_id": 3,
        "pid": null,
        "published_at": "2024-03-08T17:13:07.116+08:00",
        "logo": "xxx"
    }
}

返回数据

{
    "code": 0,
    "message": "success",
    "remark": "成功",
    "data": {
        "id": 1,
        "title": "中国婚博会北京站,将于本周末3月9-10日开幕,快来免费领票!",
        "content": "号外!号外!北京婚博会2024年3月9-10日在北京国家会议中心盛大开幕。结婚,你要的大牌商家都在这里!!还能省下不少钱哦,在备婚的情侣,一定不要错过!",
        "hot_value": 33,
        "tags": [
            "中国婚博会"
        ],
        "release_at": "2024-03-08T17:13:07.116+08:00",
        "editor": "中国婚博会",
        "category_id": 1,
        "category": "展会资讯",
        "second_industry_id": 3,
        "second_industry": {
            "name": "安防"
        },
        "pid": null,
        "published_at": "2024-03-08T17:13:07.116+08:00",
        "logo": "xxx"
    }
}

删除展会新闻

HTTP Request

DELETE /api/admin/informations/:id

HEADERS

字段名 是否必填 描述
ACCESS-TOKEN true 授权token(aPaas提供)

URL Parameters

字段名 必填 描述

Body Parameters

字段名 是否必填 描述

请求正文

返回数据

{
    "code": 0,
    "message": "success",
    "remark": "成功",
    "data": {
        "id": 1,
        "title": "中国婚博会北京站,将于本周末3月9-10日开幕,快来免费领票!",
        "content": "号外!号外!北京婚博会2024年3月9-10日在北京国家会议中心盛大开幕。结婚,你要的大牌商家都在这里!!还能省下不少钱哦,在备婚的情侣,一定不要错过!",
        "hot_value": 33,
        "tags": [
            "中国婚博会"
        ],
        "release_at": "2024-03-08T17:13:07.116+08:00",
        "editor": "中国婚博会",
        "category_id": 1,
        "category": "展会资讯",
        "second_industry_id": 3,
        "second_industry": {
            "name": "安防"
        },
        "pid": null,
        "published_at": "2024-03-08T17:13:07.116+08:00",
        "logo": "xxx"
    }
}

上架展会新闻

HTTP Request

PUT /api/admin/informations/:id/publish

HEADERS

字段名 是否必填 描述
ACCESS-TOKEN true 授权token(aPaas提供)

URL Parameters

字段名 必填 描述

Body Parameters

字段名 是否必填 描述

请求正文

返回数据

{
    "code": 0,
    "message": "success",
    "remark": "成功",
    "data": {
        "id": 1,
        "title": "中国婚博会北京站,将于本周末3月9-10日开幕,快来免费领票!",
        "content": "号外!号外!北京婚博会2024年3月9-10日在北京国家会议中心盛大开幕。结婚,你要的大牌商家都在这里!!还能省下不少钱哦,在备婚的情侣,一定不要错过!",
        "hot_value": 33,
        "tags": [
            "中国婚博会"
        ],
        "release_at": "2024-03-08T17:13:07.116+08:00",
        "editor": "中国婚博会",
        "category_id": 1,
        "category": "展会资讯",
        "second_industry_id": 3,
        "second_industry": {
            "name": "安防"
        },
        "pid": null,
        "published_at": "2024-03-08T17:13:07.116+08:00",
        "logo": "xxx"
    }
}

下架展会新闻

HTTP Request

PUT /api/admin/informations/:id/unpublish

HEADERS

字段名 是否必填 描述
ACCESS-TOKEN true 授权token(aPaas提供)

URL Parameters

字段名 必填 描述

Body Parameters

字段名 是否必填 描述

请求正文

返回数据

{
    "code": 0,
    "message": "success",
    "remark": "成功",
    "data": {
        "id": 1,
        "title": "中国婚博会北京站,将于本周末3月9-10日开幕,快来免费领票!",
        "content": "号外!号外!北京婚博会2024年3月9-10日在北京国家会议中心盛大开幕。结婚,你要的大牌商家都在这里!!还能省下不少钱哦,在备婚的情侣,一定不要错过!",
        "hot_value": 33,
        "tags": [
            "中国婚博会"
        ],
        "release_at": "2024-03-08T17:13:07.116+08:00",
        "editor": "中国婚博会",
        "category_id": 1,
        "category": "展会资讯",
        "second_industry_id": 3,
        "second_industry": {
            "name": "安防"
        },
        "pid": null,
        "published_at": nil,
        "logo": "xxx"
    }
}

置顶展会新闻

HTTP Request

PUT /api/admin/informations/:id/top

HEADERS

字段名 是否必填 描述
ACCESS-TOKEN true 授权token(aPaas提供)

URL Parameters

字段名 必填 描述

Body Parameters

字段名 是否必填 描述

请求正文

返回数据

{
    "code": 0,
    "message": "success",
    "remark": "成功",
    "data": {
        "id": 1,
        "title": "中国婚博会北京站,将于本周末3月9-10日开幕,快来免费领票!",
        "content": "号外!号外!北京婚博会2024年3月9-10日在北京国家会议中心盛大开幕。结婚,你要的大牌商家都在这里!!还能省下不少钱哦,在备婚的情侣,一定不要错过!",
        "hot_value": 33,
        "tags": [
            "中国婚博会"
        ],
        "release_at": "2024-03-08T17:13:07.116+08:00",
        "editor": "中国婚博会",
        "category_id": 1,
        "category": "展会资讯",
        "second_industry_id": 3,
        "second_industry": {
            "name": "安防"
        },
        "pid": null,
        "published_at": "2024-03-08T17:13:07.116+08:00",
        "logo": "xxx"
    }
}

取消置顶展会新闻

HTTP Request

PUT /api/admin/informations/:id/untop

HEADERS

字段名 是否必填 描述
ACCESS-TOKEN true 授权token(aPaas提供)

URL Parameters

字段名 必填 描述

Body Parameters

字段名 是否必填 描述

请求正文

返回数据

{
    "code": 0,
    "message": "success",
    "remark": "成功",
    "data": {
        "id": 1,
        "title": "中国婚博会北京站,将于本周末3月9-10日开幕,快来免费领票!",
        "content": "号外!号外!北京婚博会2024年3月9-10日在北京国家会议中心盛大开幕。结婚,你要的大牌商家都在这里!!还能省下不少钱哦,在备婚的情侣,一定不要错过!",
        "hot_value": 33,
        "tags": [
            "中国婚博会"
        ],
        "release_at": "2024-03-08T17:13:07.116+08:00",
        "editor": "中国婚博会",
        "category_id": 1,
        "category": "展会资讯",
        "second_industry_id": 3,
        "second_industry": {
            "name": "安防"
        },
        "pid": null,
        "published_at": nil,
        "logo": "xxx"
    }
}
文档更新时间: 2025-04-09 17:20   作者:李辉