Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jiaoyou_doc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李进峰
jiaoyou_doc
Commits
1279e6d4
Commit
1279e6d4
authored
Nov 17, 2023
by
陈宥希
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上传新文件
parent
97d9524e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
79 additions
and
0 deletions
+79
-0
剧本导入检查_v20231024.md
dramaeditor/剧本导入检查_v20231024.md
+79
-0
No files found.
dramaeditor/剧本导入检查_v20231024.md
0 → 100644
View file @
1279e6d4
# 例句扩展_剧本导入检查
# 例句扩展_剧本导入检查
**测试环境URL**
: tx-gz18.heyqiwu.cn
**生产环境URL**
: juben.jiaoyou365.com
## 1. 导入Bot的进度查询及错误反馈
**METHOD**
: GET
**path**
: /api/juben/work/getPercent
**RequestHeaders:**
| key | description |
| ------------- | ------------------------------ |
| Content-Type | application/json,charset=utf-8 |
| Authorization |
\*\*
鉴权Token
\*\*
|
**RequestParam:**
| 参数名 | 类型 | 示例值 | 是否必填 | 参数描述 |
| --------- | ------ | ------ | -------- | ------------ |
| projectId | String | 2701 | 是 | 作品的项目id |
#### 请求示例
```
json
curl
--location
--request
GET
'https
:
//juben.jiaoyou
365
.com/api/juben/work/getPercent?projectId=
2701
'
\
--header
'Content-Type
:
application/json'
\
--header
'Authorization
:
***'
```
**ResponseBody.data:**
##### 正在处理中/成功:
| 参数名 | 类型 | 示例值 | 参数描述 |
| -------- | ------- | -------- | ------------------------------ |
| progress | Integer | 2701 | 进度百分数 |
| status | Integer | 1
\|
0 | 作品是否上传成功并通过句法检查 |
##### 失败:返回包含出错行信息的list,其每个元素:
| 参数名 | 类型 | 示例值 | 参数描述 |
| ---------- | ------ | ---------------- | -------------------------- |
| plotNumber | String | 2-1-1 | 导入的文件中错误所在的行号 |
| errMsg | String | 缺少角色【】符号 | 该处错误详情 |
#### 响应示例
```
json
{
"code"
:
1
,
"msg"
:
"成功"
,
"data"
:
{
"progress"
:
100
,
"status"
:
1
}
}
```
```
json
{
"code"
:
13006
,
"msg"
:
"剧本中存在语法错误,详见data"
,
"data"
:
[
{
"line"
:
3
,
"errMsg"
:
"缺少[符号"
},
{
"line"
:
21
,
"errMsg"
:
"缺少角色【】符号"
},
]
}
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment