package org.sxkj.resource.feign;
|
|
import org.springblade.core.launch.constant.AppConstant;
|
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.RequestParam;
|
import org.sxkj.resource.entity.Oss;
|
|
/**
|
* IAttachClient
|
*
|
* @author Chill
|
*/
|
@FeignClient(
|
value = AppConstant.APPLICATION_RESOURCE_NAME,
|
fallback = IOssClientFallback.class
|
)
|
public interface IOssClient {
|
String API_PREFIX = "/client";
|
String GET_OSS_INFO = API_PREFIX + "/get-oss-info";
|
String GET_DEF_OSS = API_PREFIX + "/get-def-oss";
|
String GET_OSS_CACHE_BY_SN = API_PREFIX + "/get-oss-cache-by-sn";
|
|
/**
|
* 获取存储对象信息
|
* @param sn 机场编号
|
* @return R
|
*/
|
@GetMapping(GET_OSS_INFO)
|
Oss getOssInfo(@RequestParam("sn") String sn);
|
|
/**
|
* 获取默认的 oss 信息
|
* @return DictBiz
|
*/
|
@GetMapping(GET_DEF_OSS)
|
Oss getDefaultOss(@RequestParam("tenantId")String tenantId);
|
|
/**
|
* 从缓存中获取oss信息
|
* @param sn
|
* @return
|
*/
|
@GetMapping(GET_OSS_CACHE_BY_SN)
|
Oss getOssCacheBySn(@RequestParam("sn") String sn);
|
}
|