mirror of
http://124.126.16.154:8888/singularity/hdk-pay.git
synced 2026-01-15 07:15:06 +08:00
- 在 ExchangeRepoInterface 中添加了 uid 参数 - 在 ProductRepo 中实现了 getRate 方法,增加了 uid 参数 - 更新了单元测试,添加了 uid 参数
23 lines
512 B
PHP
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;
|
|
} |