22 lines
494 B
PHP
22 lines
494 B
PHP
|
|
<?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;
|
|||
|
|
}
|