feat: add syj promote workflow

This commit is contained in:
apple
2026-05-03 14:44:12 +08:00
parent 12c2431d4e
commit 0e07a65e3f
36 changed files with 1972 additions and 1 deletions

View File

@@ -0,0 +1,23 @@
<?php
declare(strict_types=1);
namespace app\dao\syj;
use app\dao\BaseDao;
use app\model\syj\PromoteAmountLog;
class PromoteAmountLogDao extends BaseDao
{
protected function setModel(): string
{
return PromoteAmountLog::class;
}
public function getUserList(int $uid, int $page, int $limit): array
{
$model = $this->getModel()->where('uid', $uid);
$count = (clone $model)->count();
$list = $model->order('add_time', 'desc')->page($page, $limit)->select()->toArray();
return compact('list', 'count');
}
}