package com.schisandra.system.api;

import com.schisandra.system.entity.Result;
import com.schisandra.system.entity.SchisandraSysConfigDTO;
import com.schisandra.system.entity.SchisandraSysOauthDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("schisandra-cloud-storage-system")
public interface SchisandraSystemFeignService {
    @PostMapping(value = "/system/getConfigByKey")
    Result<SchisandraSysConfigDTO> getConfigByKey(@RequestParam(value = "key") String key);
    @PostMapping("/system/oauth/getOauthConfigByType")
    Result<SchisandraSysOauthDTO> getOauthConfigByType(@RequestParam("type") String type);
}
