refactor(Domain): 重构 ExchangeRepoInterface 接口

-将 getRate 方法的 $uid 参数类型从 string 改为 ?string
This commit is contained in:
李东云
2025-09-19 16:48:31 +08:00
parent 41d768ba82
commit 31559fdf5d

View File

@@ -16,8 +16,8 @@ interface ExchangeRepoInterface
/**
* @param PointType $source
* @param PointType $target
* @param string $uid
* @param string|null $uid
* @return float
*/
public function getRate(PointType $source, PointType $target, string $uid): float;
public function getRate(PointType $source, PointType $target, ?string $uid = null): float;
}