package cn.iocoder.yudao.module.infra.controller.app.cos;

import cn.iocoder.yudao.framework.tenant.core.aop.TenantIgnore;
import cn.iocoder.yudao.module.infra.cos.CosStsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.security.PermitAll;
import java.util.Map;

/**
 * @Description: sts
 * @Author: 86187
 * @Date: 2025/03/20 16:34
 * @Version: 1.0
 */
@RestController
@RequestMapping("/cos")
public class AppCosStsController {
    @Autowired
    CosStsService cosStsService;
    @GetMapping("/sts")
    @PermitAll
    @TenantIgnore
    public Map<String, Object> getCosSts() {
        Map<String, Object> result = cosStsService.getTempKeys();
        return result;
    }
}
