add aggr
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Service;
|
||||
|
||||
/**
|
||||
* 聚合视图刷新接口
|
||||
*
|
||||
* 隔离 PG procedure 调用,便于在单测中注入 mock 实现。
|
||||
*/
|
||||
interface AggregateRefresherInterface
|
||||
{
|
||||
/**
|
||||
* 对指定聚合视图的指定日期刷新
|
||||
*
|
||||
* @param string $view 聚合视图名(如 'orders_daily_by_created')
|
||||
* @param string $refresh_date Y-m-d 格式日期
|
||||
*/
|
||||
public function refresh(string $view, string $refresh_date): void;
|
||||
}
|
||||
Reference in New Issue
Block a user