|  | @@ -2,8 +2,6 @@ package com.zanxiang.game.module.manage.controller;
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  import com.zanxiang.erp.security.annotation.PreAuthorize;
 |  |  import com.zanxiang.erp.security.annotation.PreAuthorize;
 | 
											
												
													
														|  |  import com.zanxiang.game.module.manage.enums.FileTypeEnum;
 |  |  import com.zanxiang.game.module.manage.enums.FileTypeEnum;
 | 
											
												
													
														|  | -import com.zanxiang.module.oss.pojo.OssUploadCallback;
 |  | 
 | 
											
												
													
														|  | -import com.zanxiang.module.oss.pojo.dto.OssUploadDTO;
 |  | 
 | 
											
												
													
														|  |  import com.zanxiang.module.oss.service.IOssService;
 |  |  import com.zanxiang.module.oss.service.IOssService;
 | 
											
												
													
														|  |  import com.zanxiang.module.util.exception.BaseException;
 |  |  import com.zanxiang.module.util.exception.BaseException;
 | 
											
												
													
														|  |  import com.zanxiang.module.util.pojo.ResultVO;
 |  |  import com.zanxiang.module.util.pojo.ResultVO;
 | 
											
										
											
												
													
														|  | @@ -13,7 +11,10 @@ import io.swagger.annotations.ApiResponse;
 | 
											
												
													
														|  |  import io.swagger.annotations.ApiResponses;
 |  |  import io.swagger.annotations.ApiResponses;
 | 
											
												
													
														|  |  import lombok.extern.slf4j.Slf4j;
 |  |  import lombok.extern.slf4j.Slf4j;
 | 
											
												
													
														|  |  import org.springframework.beans.factory.annotation.Autowired;
 |  |  import org.springframework.beans.factory.annotation.Autowired;
 | 
											
												
													
														|  | -import org.springframework.web.bind.annotation.*;
 |  | 
 | 
											
												
													
														|  | 
 |  | +import org.springframework.web.bind.annotation.GetMapping;
 | 
											
												
													
														|  | 
 |  | +import org.springframework.web.bind.annotation.RequestMapping;
 | 
											
												
													
														|  | 
 |  | +import org.springframework.web.bind.annotation.RequestParam;
 | 
											
												
													
														|  | 
 |  | +import org.springframework.web.bind.annotation.RestController;
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  import java.util.Map;
 |  |  import java.util.Map;
 | 
											
												
													
														|  |  
 |  |  
 | 
											
										
											
												
													
														|  | @@ -42,13 +43,4 @@ public class OssController {
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  |          return ResultVO.ok(ossService.formUpload(fileTypeEnum.getFilePath(), type));
 |  |          return ResultVO.ok(ossService.formUpload(fileTypeEnum.getFilePath(), type));
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  | -    @ApiOperation(value = "oss回传接口")
 |  | 
 | 
											
												
													
														|  | -    @PostMapping("/callback")
 |  | 
 | 
											
												
													
														|  | -    @PreAuthorize(permissionKey = "sdk:oss:callback")
 |  | 
 | 
											
												
													
														|  | -    @ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = OssUploadCallback.class)})
 |  | 
 | 
											
												
													
														|  | -    public ResultVO<OssUploadCallback> ossCallback(@RequestBody OssUploadDTO dto) {
 |  | 
 | 
											
												
													
														|  | -        return ResultVO.ok(ossService.callback(dto));
 |  | 
 | 
											
												
													
														|  | -    }
 |  | 
 | 
											
												
													
														|  | -
 |  | 
 | 
											
												
													
														|  |  }
 |  |  }
 |