no message

This commit is contained in:
hajimi
2026-06-11 12:15:29 +08:00
parent 10ebe39c30
commit 96efa1d905
5859 changed files with 815501 additions and 5 deletions
@@ -0,0 +1,30 @@
<?php
namespace app\adminapi\lists\points;
use app\adminapi\lists\BaseAdminDataLists;
use app\common\model\points\PointsProduct;
class PointsProductLists extends BaseAdminDataLists
{
public function setSearch(): array
{
return [
'%like%' => ['name'],
];
}
public function lists(): array
{
return PointsProduct::where($this->searchWhere)
->order(['sort' => 'desc', 'id' => 'desc'])
->limit($this->limitOffset, $this->limitLength)
->select()
->toArray();
}
public function count(): int
{
return PointsProduct::where($this->searchWhere)->count();
}
}