Commit 1279e6d4 by 陈宥希

上传新文件

parent 97d9524e
# 例句扩展_剧本导入检查
# 例句扩展_剧本导入检查
**测试环境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.jiaoyou365.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": "缺少角色【】符号"
},
]
}
```
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment