You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OneAuth/oaweb/composables/api/models.ts

90 lines
1.4 KiB
TypeScript

1 year ago
export interface Access {
1 year ago
created_at: Date
updated_at: Date
12 months ago
id: string
1 year ago
user_id?: string
role_id?: string
name: string
1 year ago
tid: string
1 year ago
level: number
12 months ago
resource_id?: string
app_id: string
}
1 year ago
export interface App {
1 year ago
id: string
created_at: Date
updated_at: Date
1 year ago
name: string
icon: string
des: string
init_role_id?: string
init_role?: Role
1 year ago
init_url: string
user_count: number
1 year ago
typ: string
status: string
user_status: string
}
1 year ago
export const AppTyp = ['public', 'apply', 'private']
1 year ago
export interface AppUser {
1 year ago
id: string
created_at: Date
updated_at: Date
1 year ago
app_id: string
user_id: string
status: string
app?: App
user?: User
}
1 year ago
export interface Resource {
1 year ago
created_at: Date
updated_at: Date
12 months ago
id: string
1 year ago
name: string
des: string
12 months ago
app_id: string
}
1 year ago
export interface Role {
1 year ago
id: string
created_at: Date
updated_at: Date
1 year ago
name: string
des: string
app_id: string
user_count: number
}
1 year ago
export interface Token {
1 year ago
id: string
created_at: Date
updated_at: Date
1 year ago
user_id: string
app_id: string
expired_at: Date
1 year ago
over_perm: string
device: string
1 year ago
ip: string
}
1 year ago
export interface User {
1 year ago
id: string
created_at: Date
updated_at: Date
1 year ago
username: string
nickname: string
icon: string
email: string
phone: string
status: number
}
1 year ago
export interface UserRole {
1 year ago
id: string
created_at: Date
updated_at: Date
1 year ago
user_id: string
role_id: string
app_id: string
status: string
}
1 year ago