Commit 3ff544a8 by linxu

增加swagger-ui annotation

parent 0d8d1f41
...@@ -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();
......
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