first commit

This commit is contained in:
JaguarJack
2022-12-05 23:01:12 +08:00
commit 0024080c28
322 changed files with 27698 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
export interface Permission {
id: number
parent_id: number
title: string
type: number
icon: string
component: string
module: string
permission_mark: string
route: string
redirect: string
keepAlive: boolean
hidden: boolean
is_inner: boolean
}

View File

@@ -0,0 +1 @@
export {}

View File

@@ -0,0 +1,22 @@
// login user type
import { Permission } from './permission'
export interface User {
id: number,
nickname: string,
avatar: string,
email: string,
status: number,
remember_token: string,
roles?: string[],
permissions?: Permission[]
}

View File

@@ -0,0 +1,33 @@
import { Component } from 'vue'
import { RouteRecordRaw } from 'vue-router'
export interface Meta {
title: string
icon: string
roles?: string[]
cache?: boolean
hidden: boolean
keepalive?: boolean
is_inner?: boolean
}
// @ts-ignore
export interface Menu extends Omit<RouteRecordRaw, 'meta'> {
path: string
name: string
meta?: Meta
redirect?: string
component?: Component
children?: Menu[]
}

View File

@@ -0,0 +1,7 @@
export default interface ResponseData{
code: number;
message: string;
data: any
}

View File

@@ -0,0 +1,15 @@
export interface RouterMeta {
icon: string,
title: string,
roles: string[]
}
export interface RouterRecord {
name: string;
meta: RouterMeta;
component?: string;
children?: RouterRecord[];
fullPath?: string;
redirect: string
}