Added student status list query

This commit is contained in:
Keannu Christian Bernasol 2023-08-15 14:15:33 +08:00
parent cfd82d3c42
commit 146d80cc98
3 changed files with 46 additions and 5 deletions

View file

@ -256,3 +256,16 @@ export async function PatchStudentStatus(info: StudentStatusType) {
return [false, error_message];
});
}
export async function GetStudentStatusList() {
const config = await GetConfig();
return instance
.get("/api/v1/student_status/list/", config)
.then((response) => {
return [true, response.data];
})
.catch((error) => {
let error_message = ParseError(error);
return [false, error_message];
});
}