update type definition

This commit is contained in:
Pig Fang 2020-06-28 16:14:56 +08:00
parent 54fda11cb4
commit 9c5945235c
No known key found for this signature in database
GPG Key ID: A8198F548DADA9E2
2 changed files with 16 additions and 14 deletions

View File

@ -11,20 +11,21 @@ use Lorisleiva\LaravelSearchString\Concerns\SearchString;
use Tymon\JWTAuth\Contracts\JWTSubject; use Tymon\JWTAuth\Contracts\JWTSubject;
/** /**
* @property int $uid * @property int $uid
* @property string $email * @property string $email
* @property string $password * @property string $password
* @property string $nickname * @property string $nickname
* @property int $avatar * @property string|null $locale
* @property int $score * @property int $avatar
* @property int $permission * @property int $score
* @property string $ip * @property int $permission
* @property string $last_sign_at * @property string $ip
* @property string $register_at * @property string $last_sign_at
* @property bool $verified * @property string $register_at
* @property string $player_name * @property bool $verified
* @property Collection $players * @property string $player_name
* @property Collection $closet * @property Collection $players
* @property Collection $closet
*/ */
class User extends Authenticatable implements JWTSubject class User extends Authenticatable implements JWTSubject
{ {

View File

@ -2,6 +2,7 @@ export type User = {
uid: number uid: number
email: string email: string
nickname: string nickname: string
user: string | null
score: number score: number
avatar: number avatar: number
permission: UserPermission permission: UserPermission