41 lines
1.1 KiB
PHP
41 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace Modules\EcommerceFinance\Repositories;
|
|
|
|
/** 店铺收款账单·抖音账户(头条放心购)只读共享业务镜像。 */
|
|
class StoreReceivingDouyinBillMirrorRepository
|
|
{
|
|
public const SOURCE_CHANNEL = 'TouTiaoFXGZJ';
|
|
|
|
public function __construct(
|
|
private readonly StoreReceivingAlipayBillMirrorRepository $source,
|
|
) {
|
|
}
|
|
|
|
/** @return array<string,mixed> */
|
|
public function paginate(array $filters, string $sort, string $direction, int $page, int $perPage): array
|
|
{
|
|
return $this->source->paginateChannel(
|
|
$filters,
|
|
$sort,
|
|
$direction,
|
|
$page,
|
|
$perPage,
|
|
self::SOURCE_CHANNEL,
|
|
'douyin',
|
|
);
|
|
}
|
|
|
|
/** @return iterable<int,array<string,mixed>> */
|
|
public function exportRows(array $filters, string $sort = 'occurred_at', string $direction = 'asc'): iterable
|
|
{
|
|
return $this->source->exportChannelRows(
|
|
$filters,
|
|
$sort,
|
|
$direction,
|
|
self::SOURCE_CHANNEL,
|
|
'douyin',
|
|
);
|
|
}
|
|
}
|