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

import cn.hutool.json.JSONObject;
import cn.iocoder.yudao.module.infra.cos.CosStsService;
import com.tencent.cloud.Response;
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.HashMap;
import java.util.Map;

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


        return result;
    }
}
