用户查询

This commit is contained in:
“wanyongkang”
2021-03-19 10:41:41 +08:00
parent ef5b83874c
commit c4f42c12e6
2 changed files with 10 additions and 4 deletions

View File

@@ -19,4 +19,9 @@ class User extends Model
{
return $this->field($fields)->where($where)->fetch();
}
public function getUserListPage($where = '', $fields = '*', $order = 'id desc', $limit = '50')
{
return $this->field($fields)->where($where)->order($order)->limit($limit)->fetchAll();
}
}