新增查询OSS的plicy接口
This commit is contained in:
@ -5,6 +5,7 @@ import com.sczx.store.dto.OssPlicyReq;
|
|||||||
import com.sczx.store.dto.OssPolicyRes;
|
import com.sczx.store.dto.OssPolicyRes;
|
||||||
import com.sczx.store.service.OssService;
|
import com.sczx.store.service.OssService;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
@ -19,6 +20,7 @@ public class OssController {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private OssService ossService;
|
private OssService ossService;
|
||||||
|
|
||||||
|
@ApiOperation(value = "获取oss的policy")
|
||||||
@PostMapping("/policy")
|
@PostMapping("/policy")
|
||||||
public Result<OssPolicyRes> policy(@RequestBody OssPlicyReq ossPlicyReq) {
|
public Result<OssPolicyRes> policy(@RequestBody OssPlicyReq ossPlicyReq) {
|
||||||
return Result.ok(ossService.getPolicy(ossPlicyReq));
|
return Result.ok(ossService.getPolicy(ossPlicyReq));
|
||||||
|
|||||||
Reference in New Issue
Block a user