This commit is contained in:
felinae98
2021-09-24 15:48:53 +08:00
parent 31c5e283ba
commit dce58580f2
16 changed files with 370 additions and 20 deletions
+4 -1
View File
@@ -5,7 +5,10 @@ export const loginContextDefault: LoginContextType = {
login: {
login: false,
type: '',
name: ''
name: '',
id: '123',
// groups: [],
token: ''
},
save: () => {}
};
+21 -5
View File
@@ -1,7 +1,15 @@
interface QQGroup {
id: string,
name: string,
}
export interface LoginStatus {
login: boolean
type: String
name: String
type: string
name: string
id: string
// groups: Array<QQGroup>
token: string
}
export type LoginContextType = {
@@ -10,10 +18,10 @@ export type LoginContextType = {
}
export interface SubscribeConfig {
platform: String
target?: String
platform: string
target?: string
catetories: Array<number>
tags: Array<String>
tags: Array<string>
}
export interface GlobalConf {
@@ -27,3 +35,11 @@ export interface PlatformConfig {
platformName: string,
hasTarget: boolean
}
export interface TokenResp {
status: number,
token: string,
type: string,
id: string
name: string
}