diff --git a/src/main/java/com/sczx/store/controller/OssController.java b/src/main/java/com/sczx/store/controller/OssController.java index 6e2970c..3eb4a8e 100644 --- a/src/main/java/com/sczx/store/controller/OssController.java +++ b/src/main/java/com/sczx/store/controller/OssController.java @@ -5,6 +5,7 @@ import com.sczx.store.dto.OssPlicyReq; import com.sczx.store.dto.OssPolicyRes; import com.sczx.store.service.OssService; import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; @@ -19,6 +20,7 @@ public class OssController { @Autowired private OssService ossService; + @ApiOperation(value = "获取oss的policy") @PostMapping("/policy") public Result policy(@RequestBody OssPlicyReq ossPlicyReq) { return Result.ok(ossService.getPolicy(ossPlicyReq));