OSDConfigClient.java 637 Bytes
package com.viontech.fanxing.commons.feign;

import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * .
 *
 * @author 谢明辉
 * @date 2021/12/11
 */

@FeignClient(value = "osd-server")
public interface OSDConfigClient {

    @GetMapping("/storageConfigs")
    JSONObject listAll(@RequestParam Integer type);

    @GetMapping("/storageConfigs/{id}")
    JSONObject getById(@PathVariable("id") Long id);


}