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.

44 lines
761 B

4 years ago
import { Tag } from './tag'
export interface Session {
4 years ago
token: string
createTime: string
user: User
}
export interface User {
4 years ago
// basic info
id: number
username: string
nickname: string
avatar: string
role?: string
email?: string
// about user
tagline?: string
cover?: string
location?: string
availFor?: string
about?: string
4 years ago
rawSkills?: Tag[]
4 years ago
skills?: string[]
4 years ago
// social links
website?: string
twitter?: string
github?: string
zhihu?: string
weibo?: string
facebook?: string
stackoverflow?: string
lastSeenAt?: string
created?: string
4 years ago
}
export interface UserSimple {
4 years ago
id: number
username: string
nickname: string
avatar: string
}