feat: move api-client as core's monorepo
Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
27
packages/api-client/models/user.ts
Normal file
27
packages/api-client/models/user.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
import { BaseModel } from './base'
|
||||
|
||||
export interface UserModel extends BaseModel {
|
||||
introduce: string
|
||||
mail: string
|
||||
url: string
|
||||
name: string
|
||||
socialIds: Record<string, string>
|
||||
username: string
|
||||
modified: string
|
||||
v: number
|
||||
lastLoginTime: string
|
||||
lastLoginIp?: string
|
||||
avatar: string
|
||||
postID: string
|
||||
}
|
||||
|
||||
export type TLogin = {
|
||||
token: string
|
||||
expiresIn: number
|
||||
// 登陆足迹
|
||||
lastLoginTime: null | string
|
||||
lastLoginIp?: null | string
|
||||
} & Pick<
|
||||
UserModel,
|
||||
'name' | 'username' | 'created' | 'url' | 'mail' | 'avatar' | 'id'
|
||||
>
|
||||
Reference in New Issue
Block a user