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
jixudong
jiaoyou_doc
Commits
f65a50d3
Commit
f65a50d3
authored
Sep 06, 2021
by
zhou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加导入txt文件和监听百分比功能
parent
11143dc7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
83 additions
and
0 deletions
+83
-0
导入txt文件和监听百分比.md
dramaeditor/导入txt文件和监听百分比.md
+83
-0
No files found.
dramaeditor/导入txt文件和监听百分比.md
0 → 100644
View file @
f65a50d3
## 1.1上传TXT文件
### 请求参数
1.
请求方式
Request Method: post
Path: /work/importTxt
2.
请求头:无
3.
请求参数
| 参数名 | 参数类型 | 描述 | 必须 |
| ------------- | -------- | ------------------------ | ---- |
| multipartFile | .TXT文件 | 文件 | Y |
| id | Long | 作品id | Y |
| flags | Boolean | 累加还是覆盖,true为覆盖 | Y |
4.
请求体示例
```
curl --location --request post 'http://localhost:48089/work/importTxt?id=1'
上传的文件
```
## 响应参数
-
响应参数示例
```
json
{
"code"
:
"1"
,
"msg"
:
"成功"
,
"data"
:
null
}
```
## 1.2 TXT文本进度百分比
### 请求参数
1.
请求方式
Request Method: GET
Path: /work/getPercent
2.
请求头:无
3.
请求参数
| 参数名 | 参数类型 | 描述 | 必须 |
| --------- | -------- | ------ | ---- |
| projectId | Long | 作品id | Y |
4.
请求体示例
```
curl --location --request post 'http://localhost:48089/work/getPercent?id=1'
上传的文件
```
## 响应参数
-
响应参数示例
```
json
SUCCESS
:
{
"code"
:
1
,
"data"
:
{
"progress"
:
100
,
"status"
:
1
},
"msg"
:
"成功"
}
FAILTURE
:
{
"code"
:
13001
,
"msg"
:
"剧情编号不合法,参考如下:”1-1”;”1-2”;”1-1-1“"
}
```
#
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