add registration event sort

This commit is contained in:
Timi
2026-08-03 15:34:18 +08:00
parent c49e01be38
commit b30d0d1769
6 changed files with 533 additions and 83 deletions
+5
View File
@@ -25,6 +25,10 @@ async function update(req: RegistrationEvent): Promise<void> {
return await axios.post(`${BASE_URI}/update`, req);
}
async function sort(idList: string[]): Promise<void> {
return await axios.post(`${BASE_URI}/sort`, idList);
}
async function remove(id: string): Promise<void> {
return await axios.post(`${BASE_URI}/delete`, undefined, {
params: { id }
@@ -37,5 +41,6 @@ export default {
detail,
create,
update,
sort,
remove
};