写作详情
开发中
GET
/api/write/detail
请求参数
Query 参数
id
integer
ID
示例值:
1
Header 参数
token
string
可选
示例值:
{{apiToken}}
Body 参数application/json
object {0}
示例
{}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/api/write/detail?id=1' \
--header 'token: {{apiToken}}' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
code
integer
必需
show
integer
必需
msg
string
必需
data
object
必需
id
integer
必需
title
string
必需
intro
string
必需
forms
array [object {3}]
必需
problem
array [object {4}]
必需
outline_status
integer
必需
示例
{
"code": 1,
"show": 0,
"msg": "",
"data": {
"id": 1,
"title": "我是类目",
"intro": "这是简介",
"forms": [
{
"name": "WidgetInput",
"props": {
"title": "论文标题",
"defaultValue": "",
"placeholder": "论文标题",
"maxlength": "200",
"isRequired": false
}
},
{
"name": "WidgetTextarea",
"props": {
"title": "工作内容",
"placeholder": "1.剪辑抖音视频8个 2.拍摄试镜2个 3.拍摄产品细节视频",
"rows": "4",
"maxlength": "500",
"autosize": "",
"isRequired": true
}
},
{
"name": "WidgetRadio",
"key": "field4",
"props": {
"title": "选项",
"defaultValue": "",
"isRequired": false,
"options": [
"A",
"B",
"C",
"D"
]
}
},
{
"name": "WidgetCheckbox",
"key": "field5",
"props": {
"title": "多选",
"defaultValue": [],
"isRequired": false,
"options": [
"1",
"2",
"23",
"444"
]
}
},
{
"name": "WidgetSelect",
"props": {
"title": "生成类型",
"defaultValue": "",
"isRequired": true,
"options": [
"日报",
"周报",
"月报",
"工作日报"
]
}
}
],
"problem": [
{
"id": 2,
"q": "你好",
"a": "不是很好",
"create_time": "2023-11-27 15:58:00"
},
{
"id": 1,
"q": "你好",
"a": "不是很好",
"create_time": "2023-11-27 15:57:32"
}
]
}
}
修改于 2025-02-27 10:18:22