19 lines
355 B
PHP
19 lines
355 B
PHP
<?php
|
|
|
|
|
|
namespace app\logs\model;
|
|
|
|
use fastphp\base\Model;
|
|
|
|
class User extends Model
|
|
{
|
|
protected $table = 'user';
|
|
|
|
public function getUserList(){
|
|
return $this->field('LoginCode')->order('id desc')->limit('50')->fetchAll();
|
|
}
|
|
|
|
public function getOne($where){
|
|
return $this->field('LoginCode')->where($where)->fetch();
|
|
}
|
|
} |