package org.springblade.community.feign;

import org.springblade.core.secure.BladeUser;
import org.springblade.core.tool.api.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

@FeignClient(value = "cyzh-community",path = "/feign/excel")
public interface IExcelClient {

	/**
	 * 导出模板
	 * @param response
	 * @param flag
	 * @param bladeUser
	 */
	@PostMapping("/exportExcelTemplet")
	void exportExcelTemplet(HttpServletResponse response, String flag, BladeUser bladeUser);

	/**
	 * 导入数据
	 */
	@PostMapping("/importExcel")
	R importExcel(@RequestParam("file") MultipartFile multipartFile, @RequestParam("flag") String flag, String isUpdate, HttpServletResponse response);

}
