package com.changhong.epc.tenant.controller.system; import com.changhong.epc.bean.admin.ExchangeRateInfo; import com.changhong.epc.constter.tenant.TenantUrlConst; import com.changhong.epc.rely.api.epc.admin.CurrencyApi; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RestController; import javax.annotation.Resource; @RestController public class ExchangeRateController implements TenantUrlConst { @Resource private CurrencyApi currencyApi; /** * 查询汇率 * @param exchangeRateInfo * @return */ @PostMapping(REST_GET_EXCHANGE_RATE) public String getExchangeRate(@RequestBody ExchangeRateInfo exchangeRateInfo){ return currencyApi.exchangeRate( exchangeRateInfo.getCurrencyMini() , exchangeRateInfo.getExchangeCurrencyMini() , exchangeRateInfo.getExchangeDate()); } }