mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2026-06-23 14:16:52 +08:00
update
This commit is contained in:
@@ -5,7 +5,10 @@ export const loginContextDefault: LoginContextType = {
|
||||
login: {
|
||||
login: false,
|
||||
type: '',
|
||||
name: ''
|
||||
name: '',
|
||||
id: '123',
|
||||
// groups: [],
|
||||
token: ''
|
||||
},
|
||||
save: () => {}
|
||||
};
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user