package com.red.circle.console.adapter.app.party3rd;//package com.sugartime.app.server.api.app.external;

import com.red.circle.external.inner.endpoint.oss.OssServiceClient;
import com.red.circle.framework.core.asserts.ResponseAssert;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 阿里云服务.
 */
@Slf4j
@RequiredArgsConstructor
@RestController
@RequestMapping(value = "/ali-yun", produces = MediaType.APPLICATION_JSON_VALUE)
public class AliYunRestController {

  private final OssServiceClient ossServiceClient;

  /**
   * 阿里云sts.
   */
  @GetMapping("/oss/sts")
  public Object sts() {
    return ResponseAssert.requiredSuccess(ossServiceClient.sts());
  }

}
