package com.sf.file.controller;
//package com.sf.file.controller;
//
//import java.io.IOException;
//import java.util.HashMap;
//import java.util.Map;
//
//import javax.annotation.Resource;
//
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestParam;
//import org.springframework.web.bind.annotation.RestController;
//import org.springframework.web.multipart.MultipartFile;
//
//import com.sf.common.core.controller.BaseController;
//import com.sf.common.core.domain.AjaxResult;
//import com.sf.file.config.AliOssConfig;
//import com.sf.file.service.ISysFileService;
//import com.sf.file.service.ISysFileService;
//import com.sf.file.utils.AliOssUtil;
//
///**
// * 阿里OSS文件上传下载
// */
//@RestController
//@RequestMapping("/ossFile")
//public class AliOssController extends BaseController {
//	@Resource(name = "aliOss")
//	private ISysFileService aliOssFileService;
//
//	@GetMapping(value = "/policy")
//	public Map<String, String> policy() throws Exception {
//		return AliOssConfig.policy();
//		return AliOssUtil.policy();
//	}
//
//	@PostMapping(value = "/uploadFile")
//	public AjaxResult commonUploadFile(@RequestParam(value = "file") MultipartFile file) throws IOException {
//		HashMap<String, Object> uploadResult = aliOssFileService.uploadFile(file) ;
//		return success(uploadResult);
//	}
//}