|
|
@@ -0,0 +1,27 @@
|
|
|
+type groupId = number;
|
|
|
+type projectId = number;
|
|
|
+
|
|
|
+export interface RootState {
|
|
|
+ currentGroup: groupId;
|
|
|
+ currentProject: projectId;
|
|
|
+ token: string;
|
|
|
+}
|
|
|
+
|
|
|
+export interface UserState {
|
|
|
+ isUserLoggedIn: boolean;
|
|
|
+ username: string;
|
|
|
+ groupList: Array<groupId>;
|
|
|
+ projectListOfGroup: Record<groupId, Array<projectId>>;
|
|
|
+}
|
|
|
+
|
|
|
+export interface ChangeGroupPayload {
|
|
|
+ groupId: groupId;
|
|
|
+}
|
|
|
+
|
|
|
+export interface ChangeProjectPayload {
|
|
|
+ projectId: projectId;
|
|
|
+}
|
|
|
+
|
|
|
+export interface TokenPayload {
|
|
|
+ token: string;
|
|
|
+}
|