|
@@ -1,11 +1,10 @@
|
|
|
-// @ts-nocheck
|
|
|
import { httpApp } from "@/plugins/axiosApp";
|
|
|
|
|
|
-export function login() {
|
|
|
+export function login(): any {
|
|
|
return httpApp.get("/api/user/login");
|
|
|
}
|
|
|
|
|
|
-export function getExams(pageNumber: number, pageSize: number) {
|
|
|
+export function getExams(pageNumber: number, pageSize: number): any {
|
|
|
return httpApp.get(
|
|
|
"/api/exams?" +
|
|
|
new URLSearchParams({
|
|
@@ -20,8 +19,8 @@ export function getStudents(
|
|
|
pageNumber: number,
|
|
|
pageSize: number,
|
|
|
params: any
|
|
|
-) {
|
|
|
- const form = {
|
|
|
+): any {
|
|
|
+ const form: any = {
|
|
|
examId: examId,
|
|
|
pageNumber: pageNumber,
|
|
|
pageSize: pageSize,
|
|
@@ -36,13 +35,13 @@ export function getStudents(
|
|
|
return httpApp.post("/api/exam/students", new URLSearchParams(form));
|
|
|
}
|
|
|
|
|
|
-export function countStudents(examId: number, params) {
|
|
|
+export function countStudents(examId: number, params: any) {
|
|
|
params = params || {};
|
|
|
params.examId = examId;
|
|
|
return httpApp.post("/api/exam/students/count", new URLSearchParams(params));
|
|
|
}
|
|
|
|
|
|
-export function getPackages(examId, upload, withUrl) {
|
|
|
+export function getPackages(examId: number, upload: any, withUrl: any) {
|
|
|
let uri = "/api/package/count/" + examId;
|
|
|
const param = [];
|
|
|
if (upload != undefined) {
|