Files
hdk-pay/src/Domain/Product/Repository/ExchangeRepoInterface.php
李东云 e7e1c7f6c9 refactor(domain): 更新汇率接口并添加 UID 参数
- 在 ExchangeRepoInterface 中添加了 uid 参数
- 在 ProductRepo 中实现了 getRate 方法,增加了 uid 参数
- 更新了单元测试,添加了 uid 参数
2025-09-19 16:39:09 +08:00

23 lines
512 B
PHP

<?php
/**
* ExchangeRepoInterface.php@LuxDesign
*
* @author 李东云 <Dongyun.Li@LuxCreo.Ai>
* Powered by PhpStorm
* Created on 2025/7/29
*/
namespace Singularity\HDK\Pay\Domain\Product\Repository;
use Singularity\HDK\Pay\Domain\Account\Enum\PointType;
interface ExchangeRepoInterface
{
/**
* @param PointType $source
* @param PointType $target
* @param string $uid
* @return float
*/
public function getRate(PointType $source, PointType $target, string $uid): float;
}