package org.springblade.community.feign;

import lombok.AllArgsConstructor;
import lombok.RequiredArgsConstructor;
import org.springblade.core.secure.BladeUser;
import org.springblade.core.tool.api.R;
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 javax.servlet.http.HttpServletResponse;

//@RequiredArgsConstructor
@AllArgsConstructor
@RestController
@RequestMapping("/feign/excel")
public class ExcelClient implements IExcelClient{
	@Override
	@PostMapping("/exportExcelTemplet")
	public void exportExcelTemplet(HttpServletResponse response, String flag, BladeUser bladeUser) {

	}

	@Override
	@PostMapping("/importExcel")
	public R importExcel(MultipartFile multipartFile, String flag, String isUpdate, HttpServletResponse response) {
		return R.data("Excel");
	}
}
