-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(projects): 重构项目的TS类型架构,去除interface文件夹
- Loading branch information
1 parent
75de2b0
commit 8191490
Showing
58 changed files
with
400 additions
and
461 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/** http请求头的content-type类型 */ | ||
export enum EnumContentType { | ||
json = 'application/json', | ||
formUrlencoded = 'application/x-www-form-urlencoded', | ||
formData = 'multipart/form-data', | ||
} | ||
|
||
/** 缓存的key */ | ||
export enum EnumStorageKey { | ||
/** 主题颜色 */ | ||
'theme-color' = '__THEME_COLOR__', | ||
/** 用户token */ | ||
'token' = '__TOKEN__', | ||
/** 用户刷新token */ | ||
'refresh-koken' = '__REFRESH_TOKEN__', | ||
/** 用户信息 */ | ||
'user-info' = '__USER_INFO__', | ||
/** 多页签路由信息 */ | ||
'tab-routes' = '__TAB_ROUTES__', | ||
} | ||
|
||
/** 数据类型 */ | ||
export enum EnumDataType { | ||
number = '[object Number]', | ||
string = '[object String]', | ||
boolean = '[object Boolean]', | ||
null = '[object Null]', | ||
undefined = '[object Undefined]', | ||
object = '[object Object]', | ||
array = '[object Array]', | ||
date = '[object Date]', | ||
regexp = '[object RegExp]', | ||
set = '[object Set]', | ||
map = '[object Map]', | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
export * from './common'; | ||
export * from './system'; | ||
export * from './business'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.