初始化fateverse
This commit is contained in:
20
src/type/index.ts
Normal file
20
src/type/index.ts
Normal 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
|
||||
|
||||
// 菜单项
|
||||
Reference in New Issue
Block a user