轮播图列表

HTTP Request

GET /api/admin/slides

HEADERS

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

URL Parameters

字段名 必填 描述

返回数据

{
    "code": 0,
    "message": "success",
    "remark": "成功",
    "data": {
        "models": [
            {
                "id": 1,
                "img": "https://ikcrm-files-dev.ikcrm.com/exhibition/attachments/files/395/1111.png",
                "alt": "xxx",
                "position": 1,
                "exhibition_id": 1,
                "creator_id": 1,
                "created_at": "2024-05-07T10:07:31.163+08:00",
                "updated_at": "2024-05-07T10:07:31.163+08:00",
                "creator": {
                    "id": 1,
                    "name": "展二"
                }
            }
        ]
    }
}

创建轮播图

HTTP Request

POST /api/admin/slides

HEADERS

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

URL Parameters

字段名 必填 描述

Body Parameters

字段名 是否必填 描述
slide 轮播图

请求正文

{
    "slide": {
        "img": "https://ikcrm-files-dev.ikcrm.com/exhibition/attachments/files/395/1111.png",
        "alt": "xxx",
        "exhibition_id": 1,
        "position": 1
    }
}

返回数据

{
    "code": 0,
    "message": "success",
    "remark": "成功",
    "data": {
        "id": 1,
        "img": "https://ikcrm-files-dev.ikcrm.com/exhibition/attachments/files/395/1111.png",
        "alt": "xxx",
        "position": 1,
        "exhibition_id": 1,
        "creator_id": 1,
        "created_at": "2024-05-07T10:07:31.163+08:00",
        "updated_at": "2024-05-07T10:07:31.163+08:00",
        "creator": {
            "id": 1,
            "name": "展二"
        }
    }
}

轮播图详情

HTTP Request

GET /api/admin/slides/:id

HEADERS

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

URL Parameters

字段名 必填 描述

返回数据

{
    "code": 0,
    "message": "success",
    "remark": "成功",
    "data": {
        "id": 1,
        "img": "https://ikcrm-files-dev.ikcrm.com/exhibition/attachments/files/395/1111.png",
        "alt": "xxx",
        "position": 1,
        "exhibition_id": 1,
        "creator_id": 1,
        "created_at": "2024-05-07T10:07:31.163+08:00",
        "updated_at": "2024-05-07T10:07:31.163+08:00",
        "creator": {
            "id": 1,
            "name": "展二"
        }
    }
}

更新轮播图

HTTP Request

PUT /api/admin/slides/:id

HEADERS

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

URL Parameters

字段名 必填 描述

Body Parameters

字段名 是否必填 描述
slide 轮播图

请求正文

{
    "slide": {
        "img": "https://ikcrm-files-dev.ikcrm.com/exhibition/attachments/files/395/1111.png",
        "alt": "xxx",
        "exhibition_id": 1,
        "position": 1
    }
}

返回数据

{
    "code": 0,
    "message": "success",
    "remark": "成功",
    "data": {
        "id": 1,
        "img": "https://ikcrm-files-dev.ikcrm.com/exhibition/attachments/files/395/1111.png",
        "alt": "xxx",
        "position": 1,
        "exhibition_id": 1,
        "creator_id": 1,
        "created_at": "2024-05-07T10:07:31.163+08:00",
        "updated_at": "2024-05-07T10:07:31.163+08:00",
        "creator": {
            "id": 1,
            "name": "展二"
        }
    }
}

删除轮播图

HTTP Request

DELETE /api/admin/slides/:id

HEADERS

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

URL Parameters

字段名 必填 描述

Body Parameters

字段名 是否必填 描述

请求正文

返回数据

{
    "code": 0,
    "message": "success",
    "remark": "成功"
}
文档更新时间: 2025-04-09 17:20   作者:李辉