初始化fateverse

This commit is contained in:
wenhua
2023-10-13 16:23:20 +08:00
commit 6f0949e432
47 changed files with 8371 additions and 0 deletions

20
src/type/index.ts Normal file
View File

@@ -0,0 +1,20 @@
// 接口响应类型定义
export interface IResponse<T=any> {
msg: string,
code: string | number,
data: T
}
// 定义请求方式枚举
enum EMethod {
GET = 'get',
POST = 'post',
PUT = 'put',
DELETE = 'delete',
PATCH = 'patch'
}
// 用户token类型定义
export type IToken = string
// 菜单项