|
|
@@ -4,13 +4,25 @@ import com.usoftchina.saas.auth.client.interceptor.ServiceFeignInterceptor;
|
|
|
import com.usoftchina.saas.base.Result;
|
|
|
import com.usoftchina.saas.document.dto.CurrencyDTO;
|
|
|
import org.springframework.cloud.openfeign.FeignClient;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
|
@FeignClient(name = "document-server")
|
|
|
public interface CurrencyApi {
|
|
|
|
|
|
+ /**
|
|
|
+ * 设置本位币
|
|
|
+ * @param currencyDTO
|
|
|
+ * @return
|
|
|
+ */
|
|
|
@PostMapping("/currency/setStandard")
|
|
|
Result setStandard(@RequestBody CurrencyDTO currencyDTO);
|
|
|
|
|
|
+ /**
|
|
|
+ * 获取本位币
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/currency/getStandard")
|
|
|
+ Result<CurrencyDTO> getStandard();
|
|
|
}
|