Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fuzzBackEnd
Overview
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
钱炳权
fuzzBackEnd
Commits
f9e51c78
Commit
f9e51c78
authored
Apr 18, 2024
by
钱炳权
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加接口错误提示
parent
3f6bd303
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
SeedFileController.java
...m/example/fuzzControll/controller/SeedFileController.java
+5
-0
No files found.
fuzzbackend/src/main/java/com/example/fuzzControll/controller/SeedFileController.java
View file @
f9e51c78
...
...
@@ -2,6 +2,7 @@ package com.example.fuzzControll.controller;
import
com.example.fuzzControll.pojo.vo.AjaxResult
;
import
com.example.fuzzControll.service.SeedFileService
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestMapping
;
...
...
@@ -14,6 +15,7 @@ import java.util.List;
/**
* aflnet种子文件
*/
@Slf4j
@RestController
@RequestMapping
(
"/seedFile"
)
public
class
SeedFileController
{
...
...
@@ -30,6 +32,7 @@ public class SeedFileController {
try
{
files
=
service
.
getSeedFiles
();
}
catch
(
Exception
e
)
{
log
.
error
(
e
.
toString
());
return
AjaxResult
.
error
(
"种子文件获取失败!"
);
}
return
AjaxResult
.
success
(
files
);
...
...
@@ -43,6 +46,7 @@ public class SeedFileController {
try
{
service
.
delFile
(
fileName
);
}
catch
(
Exception
e
)
{
log
.
error
(
e
.
toString
());
return
AjaxResult
.
error
(
"种子文件删除失败!"
);
}
return
AjaxResult
.
success
(
"种子文件删除成功!"
);
...
...
@@ -55,6 +59,7 @@ public class SeedFileController {
try
{
service
.
upload
(
file
);
}
catch
(
Exception
e
)
{
log
.
error
(
e
.
toString
());
return
AjaxResult
.
error
(
"种子文件upload失败!"
);
}
return
AjaxResult
.
success
(
"种子文件upload成功!"
);
...
...
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