refactor vuex
This commit is contained in:
1 parent
9c69e96416
commit
565b367c59
20 files changed
+264
-178
No files matched your search
@@ -0,0 +1,31 @@
|
||||
import { IApplication, IUser } from '@/operators';
|
||||
import { IMidjourneyState } from '../midjourney/models';
|
||||
import { IChatState } from '../chat/models';
|
||||
|
||||
export enum Status {
|
||||
Request = 'Request',
|
||||
Success = 'Success',
|
||||
Error = 'Error'
|
||||
}
|
||||
|
||||
export interface IToken {
|
||||
access?: string;
|
||||
refresh?: string;
|
||||
}
|
||||
|
||||
export interface ISetting {
|
||||
stream?: boolean;
|
||||
endpoint?: string;
|
||||
}
|
||||
|
||||
export interface ICommonState {
|
||||
token: IToken;
|
||||
user: IUser;
|
||||
setting: ISetting;
|
||||
applications: IApplication[] | undefined;
|
||||
}
|
||||
|
||||
export interface IRootState extends ICommonState {
|
||||
midjourney?: IMidjourneyState;
|
||||
chat?: IChatState;
|
||||
}
|
||||
Reference in new issue
Block a user