You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import { Tag } from './tag'
|
|
|
|
export interface Session {
|
|
|
|
token: string
|
|
|
|
createTime: string
|
|
|
|
user: User
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface User {
|
|
|
|
// basic info
|
|
|
|
id: string
|
|
|
|
username: string
|
|
|
|
nickname: string
|
|
|
|
avatar: string
|
|
|
|
role?: string
|
|
|
|
email?: string
|
|
|
|
|
|
|
|
// about user
|
|
|
|
tagline?: string
|
|
|
|
cover?: string
|
|
|
|
location?: string
|
|
|
|
availFor?: string
|
|
|
|
about?: string
|
|
|
|
rawSkills?: Tag[]
|
|
|
|
skills?: string[]
|
|
|
|
|
|
|
|
// social links
|
|
|
|
website?: string
|
|
|
|
twitter?: string
|
|
|
|
github?: string
|
|
|
|
zhihu?: string
|
|
|
|
weibo?: string
|
|
|
|
facebook?: string
|
|
|
|
stackoverflow?: string
|
|
|
|
|
|
|
|
follows?: number
|
|
|
|
followed?: boolean
|
|
|
|
|
|
|
|
lastSeenAt?: string
|
|
|
|
created?: string
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface UserSimple {
|
|
|
|
id: string
|
|
|
|
username: string
|
|
|
|
nickname: string
|
|
|
|
avatar: string
|
|
|
|
}
|