登录日志新增数据搜索功能
This commit is contained in:
21
catch/system/model/search/LoginLogSearch.php
Normal file
21
catch/system/model/search/LoginLogSearch.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace catchAdmin\system\model\search;
|
||||
|
||||
trait LoginLogSearch
|
||||
{
|
||||
public function searchLoginNameAttr($query, $value, $data)
|
||||
{
|
||||
return $query->whereLike('login_name', $value);
|
||||
}
|
||||
|
||||
public function searchLoginIpAttr($query, $value, $data)
|
||||
{
|
||||
return $query->whereLike('login_ip', $value);
|
||||
}
|
||||
|
||||
public function searchLoginAtAttr($query, $value, $data)
|
||||
{
|
||||
return $query->whereTime('login_at', 'between', $value);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user