|
@@ -1,9 +1,3 @@
|
|
-export interface Pagination {
|
|
|
|
- pageNo: number;
|
|
|
|
- pageSize: number;
|
|
|
|
- totalElements: number;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
export interface Role {
|
|
export interface Role {
|
|
roleId: number;
|
|
roleId: number;
|
|
roleCode: "ORG_ADMIN" | "SUPER_ADMIN" | "ROOT_ORG_ADMIN" | "COURSE_ADMIN";
|
|
roleCode: "ORG_ADMIN" | "SUPER_ADMIN" | "ROOT_ORG_ADMIN" | "COURSE_ADMIN";
|
|
@@ -14,6 +8,21 @@ export type Course_Type = "PUBLIC" | "MAJOR";
|
|
|
|
|
|
export type Privilege_Type = "COURSE" | "ORG";
|
|
export type Privilege_Type = "COURSE" | "ORG";
|
|
|
|
|
|
|
|
+export interface ServerPageResponse<T> {
|
|
|
|
+ data: {
|
|
|
|
+ content: T[];
|
|
|
|
+ pageNo: number;
|
|
|
|
+ pageSize: number;
|
|
|
|
+ totalElements: number;
|
|
|
|
+ };
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// export type ServerResponse<T> = ServerResponseI<T>;
|
|
|
|
+// HOW?
|
|
|
|
+// I is optional, default any
|
|
|
|
+// T is ServerResponse<T>
|
|
|
|
+// type AxiosPostFuncInner<I = any,Y> = ;
|
|
|
|
+
|
|
export interface Course {
|
|
export interface Course {
|
|
code: string;
|
|
code: string;
|
|
createTime: string;
|
|
createTime: string;
|
|
@@ -33,10 +42,6 @@ export interface Course {
|
|
updater: string;
|
|
updater: string;
|
|
}
|
|
}
|
|
|
|
|
|
-export interface CourseResponse extends Pagination {
|
|
|
|
- content: Course[];
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
export interface ProjectCourse {
|
|
export interface ProjectCourse {
|
|
courseCode: string;
|
|
courseCode: string;
|
|
courseId: number;
|
|
courseId: number;
|
|
@@ -52,10 +57,6 @@ export interface ProjectCourse {
|
|
totalScoreLine: number;
|
|
totalScoreLine: number;
|
|
}
|
|
}
|
|
|
|
|
|
-export interface ProjectCourseResponse extends Pagination {
|
|
|
|
- content: ProjectCourse[];
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
// 科目成绩(总分)频率分布-科目成绩占初试总分权重
|
|
// 科目成绩(总分)频率分布-科目成绩占初试总分权重
|
|
export interface SasCourse {
|
|
export interface SasCourse {
|
|
courseCode: string;
|
|
courseCode: string;
|
|
@@ -109,10 +110,6 @@ export interface Paper {
|
|
totalCount: number;
|
|
totalCount: number;
|
|
}
|
|
}
|
|
|
|
|
|
-export interface PaperResponse extends Pagination {
|
|
|
|
- content: Paper[];
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
// 整体分析-试卷特征量数
|
|
// 整体分析-试卷特征量数
|
|
export interface SASPaper {
|
|
export interface SASPaper {
|
|
allRange: number;
|
|
allRange: number;
|
|
@@ -156,10 +153,6 @@ export interface Project {
|
|
updater: string;
|
|
updater: string;
|
|
}
|
|
}
|
|
|
|
|
|
-export interface ProjectResponse extends Pagination {
|
|
|
|
- content: Project[];
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
interface LevelDetail {
|
|
interface LevelDetail {
|
|
questionCount: number;
|
|
questionCount: number;
|
|
fullScore: number;
|
|
fullScore: number;
|
|
@@ -308,10 +301,6 @@ export interface User {
|
|
password: string; // FE add
|
|
password: string; // FE add
|
|
}
|
|
}
|
|
|
|
|
|
-export interface UserResponse extends Pagination {
|
|
|
|
- content: User[];
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
export interface RootOrg {
|
|
export interface RootOrg {
|
|
code: string;
|
|
code: string;
|
|
domainName: string;
|
|
domainName: string;
|
|
@@ -321,10 +310,6 @@ export interface RootOrg {
|
|
updateTime: string;
|
|
updateTime: string;
|
|
}
|
|
}
|
|
|
|
|
|
-export interface RootOrgResponse extends Pagination {
|
|
|
|
- content: RootOrg[];
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
export interface SubOrg {
|
|
export interface SubOrg {
|
|
code: string;
|
|
code: string;
|
|
createTime: string;
|
|
createTime: string;
|
|
@@ -341,13 +326,6 @@ export interface SubOrg {
|
|
updateTimeStr: string;
|
|
updateTimeStr: string;
|
|
updater: string;
|
|
updater: string;
|
|
}
|
|
}
|
|
-export interface SubOrgResponse extends Pagination {
|
|
|
|
- content: SubOrg[];
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-export interface SASPaperResponse extends Pagination {
|
|
|
|
- content: SASPaper[];
|
|
|
|
-}
|
|
|
|
|
|
|
|
export interface ImportResponse {
|
|
export interface ImportResponse {
|
|
data: {
|
|
data: {
|