package com.dk.mdm.controller.common;

import com.dk.common.response.ResponseResultVO;
import com.dk.mdm.service.common.ExportService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @author : 周兴
 * @desc : 导出excel
 * @date : 2023/1/3 17:21
 */
@Api(tags = "控件数据源API")
@RestController
@RequestMapping("/mst/export")
public class ExportController  {

    @Autowired
    private ExportService exportService;


    /**
     * @desc : 导出excel
     * @author : 周兴
     * @date : 2023/2/22 15:54
     */
    @ApiOperation(value = "导出excel", notes = "导出excel")
    @PostMapping({"export"})
    public ResponseResultVO<String> exportList(@RequestBody Map<String, Object> params) {
       return exportService.exportList(params);
    }
}



