Skip to content

模板

接入前提

获取调用API所需的TOKEN请参考鉴权

模板套装列表筛选项

说明

接口描述此接口返回模板套装列表筛选项,用于模板套装列表接口的筛选项数据填充
接口地址/api/template_component/suit/select请求方式GET
权限校验请求参数json
图片示例

请求示例

ts
curl --location --request GET 'https://co.aippt.cn/api/template_component/suit/select' \
--header 'x-api-key: {{apiKey}}' \
--header 'x-channel;' \
--header 'x-token: {{token}}'

响应内容

响应示例

ts
{
    "code": 0,
    "data": {
        "colour": [
            {
                "id": 1,
                "name": "橙色",
                "en_name": "Orange",
                "code": "#FCC462"
            },
            {
                "id": 2,
                "name": "红色",
                "en_name": "",
                "code": "#FB6E6F"
            }
        ],
        "suit_style": [
            {
                "id": 1,
                "title": "扁平简约"
            },
            {
                "id": 2,
                "title": "商务科技"
            }
        ]
    },
    "msg": "ok"
}

模板套装列表

说明

接口描述此接口返回模板套装列表,选中后的套装用于调用 PPT生成 接口。
接口地址/api/template_component/suit/search请求方式GET
权限校验请求参数json
图片示例

请求参数

请求示例

ts
curl --location --request GET 'https://co.aippt.cn/api/template_component/suit/search?colour_id&page&page_size&style_id&suit_ids' \
--header 'x-api-key: {{apiKey}}' \
--header 'x-channel;' \
--header 'x-token: {{token}}'

响应内容

响应示例

ts
{
    "code": 0,
    "data": {
        "pagination": {
            "total": 19,
            "current_page": 1,
            "page_size": 2
        },
        "list": [
            {
                "id": 81,
                "cover_img": "//file.isheji.com/isheji-sop/0/119/styles/20221024172110271036.jpeg"
            },
            {
                "id": 80,
                "cover_img": "//file.isheji.com/isheji-sop/0/119/styles/20221024172003597548.jpeg"
            }
        ]
    },
    "msg": "ok"
}

企业模板套装列表

说明

接口描述此接口返回企业模板套装列表,选中后的套装用于调用 PPT生成 接口。
接口地址/api/template_component/enterprise/suit/list请求方式GET
权限校验请求参数json

请求示例

ts
curl --location --request GET 'https://co.aippt.cn/api/template_component/enterprise/suit/list' \
--header 'x-api-key: {{apiKey}}' \
--header 'x-channel;' \
--header 'x-token: {{token}}'

响应内容

响应示例

ts
{
    "code": 0,
    "data": {
        "pagination": {
            "total": 19,
            "current_page": 1,
            "page_size": 2
        },
        "list": [
            {
                "id": 81,
                "cover_img": "//file.isheji.com/isheji-sop/0/119/styles/20221024172110271036.jpeg"
            },
            {
                "id": 80,
                "cover_img": "//file.isheji.com/isheji-sop/0/119/styles/20221024172003597548.jpeg"
            }
        ]
    },
    "msg": "ok"
}