Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
bkunyun
Project
Project
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
Administrator
bkunyun
Commits
4c4cb316
Commit
4c4cb316
authored
Aug 11, 2022
by
chenshouchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 新增一个fileserver下载文本内容的接口
parent
2fe9ce8c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
CloudEController.ts
src/api/fileserver/CloudEController.ts
+15
-0
No files found.
src/api/fileserver/CloudEController.ts
View file @
4c4cb316
...
@@ -229,6 +229,21 @@ class CloudEController {
...
@@ -229,6 +229,21 @@ class CloudEController {
}
}
}
}
// 获取文件文本内容(字符串)
static
JobFileDownloadText
(
url
:
any
,
filetoken
:
string
,
projectId
:
string
)
{
if
(
ApiUtils
.
getAuthorizationHeaders
(
headers
))
{
url
=
url
+
urlToken
(
filetoken
,
projectId
);
headers
[
"Cache-Control"
]
=
"no-cache"
;
headers
[
"Content-Type"
]
=
"multipart/form-data"
;
return
axios
.
get
(
APIOPTION
()
+
"/download"
+
url
+
"&showhidden=false"
,
{
headers
:
headers
,
}
);
}
}
// 获取分子列表
// 获取分子列表
static
GetDatasetItemsList
(
params
:
IGetDatasetItemsListParams
)
{
static
GetDatasetItemsList
(
params
:
IGetDatasetItemsListParams
)
{
...
...
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