123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- namespace app\model;
- use support\Model;
- class SysUser extends Model
- {
- protected $table = 'sys_user';
- protected $primaryKey = 'user_id';
- public const UPDATED_AT = null;
- protected $keyType = 'string';
-
- public static function findByLoginName($name)
- {
- return self::where('user_login_name', $name)->first();
- }
-
- public static function updateStatus($id, $data)
- {
- return self::where('user_id', $id)->update($data);
- }
- }
|