mirror of https://github.com/sunface/rust-course
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
44 lines
761 B
4 years ago
|
import { Tag } from './tag'
|
||
4 years ago
|
export interface Session {
|
||
4 years ago
|
token: string
|
||
|
createTime: string
|
||
|
user: User
|
||
4 years ago
|
}
|
||
|
|
||
|
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
|
||
|
|
||
4 years ago
|
lastSeenAt?: string
|
||
4 years ago
|
created?: string
|
||
4 years ago
|
}
|
||
|
|
||
|
export interface UserSimple {
|
||
4 years ago
|
id: number
|
||
|
username: string
|
||
|
nickname: string
|
||
|
avatar: string
|
||
4 years ago
|
}
|