POST https://saas.api.yoo-ai.com/apps/ppt-structure| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
Authorization | string | 是 | Bearer {token} |
Content-Type | string | 是 | application/json |
title、text、theme三者不能同时为空,至少传一个。
多个参数同时存在时,优先级为title > theme > text。
| 参数名 | 类型 | 必填 | 说明 | 默认值 |
|---|---|---|---|---|
title | string | 否 | PPT 标题 | - |
text | string | 否 | PPT 描述 | - |
theme | string | 否 | PPT 主题 | - |
complex | int | 否 | PPT 复杂度,1/2/3 | 1 |
{
"title": "网络安全大赛",
"theme": "网络安全主题",
"text": "生成一份网络安全PPT"
}| 参数名 | 类型 | 说明 |
|---|---|---|
code | integer | 状态码 |
msg | string | 响应消息 |
data | object | 数据体 |
data.title | string | 生成后的 PPT 标题 |
data.catalogs | array | 大纲数组 |
data.catalogs 结构:
| 参数名 | 类型 | 说明 |
|---|---|---|
catalog | string | 一级标题 |
sub_catalog | array | 二级标题数组 |
{
"code": 200,
"msg": "success",
"data": {
"title": "网络安全大赛",
"catalogs": [
{
"catalog": "网络安全威胁分析",
"sub_catalog": [
"新型网络攻击手段剖析",
"网络钓鱼与社交工程防范"
]
}
]
}
}