ExcelController.java 989 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
package com.kwan.springbootkwan.controller;

import com.kwan.springbootkwan.entity.Result;
import com.kwan.springbootkwan.service.IExcelService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


/**
 * excel测试信息
 *
 * @author : qinyingjie
 * @version : 2.2.0
 * @date : 2023/11/17 09:04
 */
@Slf4j
@Api(value = "excel测试信息", tags = "ExcelController")
@RestController
@RequestMapping("/test")
public class ExcelController {

    @Resource
    private IExcelService excelService;

    @ApiOperation(value = "下载excel", notes = "下载excel")
    @GetMapping("/downloadExcel")
    public Result downloadExcel() {
//        excelService.downloadExcel();
        return Result.ok();
    }
}