IExchangeRateService.java 1.58 KB
package com.lhcredit.project.business.exchangeRate.service;

import com.lhcredit.project.business.exchangeRate.domain.ExchangeRate;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 汇率 服务层
 *
 * @author lhcredit
 * @date 2025-03-18
 */
@Service
public interface IExchangeRateService {


    public ExchangeRate getBySourceForLast(String str);

    /**
     * 查询汇率信息
     *
     * @param id 汇率ID
     * @return 汇率信息
     */
    public ExchangeRate selectExchangeRateById(Integer id);

    /**
     * 查询汇率列表
     *
     * @param exchangeRate 汇率信息
     * @return 汇率集合
     */
    public List<ExchangeRate> selectExchangeRateList(ExchangeRate exchangeRate);

    /**
     * 字段转换
     * @param exchangeRate 汇率信息
     * @return 汇率信息
     */
    public ExchangeRate changeModel(ExchangeRate exchangeRate);

    /**
     * 列表转换
     *
     * @param exchangeRateList 汇率集合
     * @return 汇率集合
     */
    public List<ExchangeRate> changeModel(List<ExchangeRate> exchangeRateList);

    /**
     * 新增汇率
     *
     * @param exchangeRate 汇率信息
     * @return 结果
     */
    public int insertExchangeRate(ExchangeRate exchangeRate);

    /**
     * 修改汇率
     *
     * @param exchangeRate 汇率信息
     * @return 结果
     */
    public int updateExchangeRate(ExchangeRate exchangeRate);

    /**
     * 删除汇率信息
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteExchangeRateByIds(String ids);

}