DatacenterServiceInterface.php 978 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
<?php
/**
 * Created by PhpStorm.
 * User: 王源
 * Date: 2020/3/16
 * Time: 15:07
 */

namespace Meibuyu\Micro\Service\Interfaces;

interface DatacenterServiceInterface
{

    /**
     * description:获取国家汇率 默认取最新一个汇率值
     * author: fuyunnan
     * @param int $currencyId 货币id
     * @param array $field 字段
符运喃's avatar
符运喃 committed
19
     * @param array $where 筛选数组
20 21 22 23
     * @return array
     * @throws
     * Date: 2020/8/11
     */
符运喃's avatar
符运喃 committed
24
    public function getCurrencyRate($currencyId, $field = ['id', 'currency_id', 'rate_val'], $where = []): array;
25 26


fuyunnan's avatar
fuyunnan committed
27 28 29 30 31
    /**
     * description:获取国家汇率 默认取最新一个汇率值
     * author: fuyunnan
     * @param array $currencyIds 货币ids
     * @param array $field 字段
符运喃's avatar
符运喃 committed
32
     * @param array $where 筛选数组
fuyunnan's avatar
fuyunnan committed
33 34 35 36
     * @return array
     * @throws
     * Date: 2020/8/11
     */
37 38
    public function getCurrencyListRate($currencyIds, $field = ['id', 'currency_id', 'rate_val'], $where = []): array;

fuyunnan's avatar
fuyunnan committed
39

40
}