feat(UserLists): 添加搜索功能实现ListsSearchInterface

This commit is contained in:
mkm 2024-06-15 11:00:20 +08:00
parent 9cefd94d26
commit 48a66a5328

View File

@ -7,8 +7,9 @@ namespace app\store\lists\user;
use app\store\lists\BaseAdminDataLists;
use app\common\model\user\User;
use app\common\model\user\UserShip;
use app\common\lists\ListsSearchInterface;
class UserLists extends BaseAdminDataLists
class UserLists extends BaseAdminDataLists implements ListsSearchInterface
{
/**
* @notes 搜索条件
@ -19,7 +20,8 @@ class UserLists extends BaseAdminDataLists
public function setSearch(): array
{
return [
'=' => ['mobile'],
'=' => ['id'],
'%like%' => ['mobile'],
];
}