新增查询OSS的plicy接口

This commit is contained in:
2025-08-11 22:45:30 +08:00
parent edef616e23
commit 86219d26a2

View File

@ -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<OssPolicyRes> policy(@RequestBody OssPlicyReq ossPlicyReq) {
return Result.ok(ossService.getPolicy(ossPlicyReq));