Browse Source

🎉 2.0.2.RELEASE

test v2.0.2.release
smallchill 6 years ago
parent
commit
81f6e1fd1c
  1. 4
      blade-ops/blade-resource/src/main/java/org/springblade/resource/controller/OssController.java
  2. 2
      blade-ops/blade-resource/src/main/java/org/springblade/resource/endpoint/OssEndpoint.java

4
blade-ops/blade-resource/src/main/java/org/springblade/resource/controller/OssController.java

@ -36,6 +36,7 @@ import org.springblade.resource.entity.OssVO;
import org.springblade.resource.service.IOssService;
import org.springblade.resource.wrapper.OssWrapper;
import org.springframework.web.bind.annotation.*;
import springfox.documentation.annotations.ApiIgnore;
import javax.validation.Valid;
@ -51,7 +52,8 @@ import static org.springblade.core.cache.constant.CacheConstant.SYS_CACHE;
@AllArgsConstructor
@RequestMapping("/oss")
@PreAuth(RoleConstant.HAS_ROLE_ADMIN)
@Api(value = "对象存储接口", tags = "接口")
@ApiIgnore
@Api(value = "对象存储接口", tags = "对象存储接口")
public class OssController extends BladeController {
private IOssService ossService;

2
blade-ops/blade-resource/src/main/java/org/springblade/resource/endpoint/OssEndpoint.java

@ -16,6 +16,7 @@
*/
package org.springblade.resource.endpoint;
import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import lombok.SneakyThrows;
import org.springblade.core.oss.model.OssFile;
@ -33,6 +34,7 @@ import org.springframework.web.multipart.MultipartFile;
@RestController
@AllArgsConstructor
@RequestMapping("/oss/endpoint")
@Api(value = "对象存储端点", tags = "对象存储端点")
public class OssEndpoint {
private OssBuilder ossBuilder;

Loading…
Cancel
Save