Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tagManager
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
lanmw
tagManager
Commits
3ff544a8
Commit
3ff544a8
authored
Dec 31, 2019
by
linxu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加swagger-ui annotation
parent
0d8d1f41
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
ExcelParser.java
src/main/java/com/keymobile/tagmanager/api/ExcelParser.java
+8
-0
No files found.
src/main/java/com/keymobile/tagmanager/api/ExcelParser.java
View file @
3ff544a8
...
@@ -5,14 +5,22 @@ import cn.afterturn.easypoi.excel.entity.ImportParams;
...
@@ -5,14 +5,22 @@ import cn.afterturn.easypoi.excel.entity.ImportParams;
import
cn.afterturn.easypoi.excel.entity.result.ExcelImportResult
;
import
cn.afterturn.easypoi.excel.entity.result.ExcelImportResult
;
import
com.keymobile.tagmanager.model.SysTag
;
import
com.keymobile.tagmanager.model.SysTag
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.multipart.MultipartFile
;
import
org.springframework.web.multipart.MultipartFile
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
import
java.util.List
;
import
java.util.List
;
@Api
(
value
=
"Excel文件处理"
,
tags
=
"Excel文件处理"
)
@RestController
@RequestMapping
(
value
=
"/Excel"
)
public
class
ExcelParser
{
public
class
ExcelParser
{
@ApiOperation
(
value
=
"解析Excel文件"
,
notes
=
"解析Excel文件"
)
@PostMapping
(
"/parseExcel"
)
@PostMapping
(
"/parseExcel"
)
public
List
<
SysTag
>
importSystem
(
MultipartFile
file
,
HttpServletResponse
response
)
throws
Exception
{
public
List
<
SysTag
>
importSystem
(
MultipartFile
file
,
HttpServletResponse
response
)
throws
Exception
{
ImportParams
params
=
new
ImportParams
();
ImportParams
params
=
new
ImportParams
();
...
...
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