后台用户管理界面

This commit is contained in:
“wanyongkang”
2021-01-16 14:29:08 +08:00
parent 0d754c58a2
commit ca3422b88b
4 changed files with 148 additions and 1 deletions

22
app/user/model/User.php Normal file
View File

@@ -0,0 +1,22 @@
<?php
namespace app\user\model;
use fastphp\base\Model;
class User extends Model
{
protected $table = 'user';
//获取客户经理相关信息
public function getManagerList($where = [],$fields = '*', $group = [], $order = '')
{
return $this->field($fields)->where($where)->group($group)->order($order)->fetchAll();
}
//用户是否存在
public function isExit($where = '', $fields = '*')
{
return $this->field($fields)->where($where)->fetch();
}
}