Initial commit

This commit is contained in:
libertyspy
2026-02-09 20:10:24 +08:00
parent 9d54395c29
commit c9bc62fb8c
3 changed files with 110 additions and 2 deletions

View File

@@ -23,6 +23,10 @@ export const createAlgorithm = (algorithm: Algorithm): Promise<BasicResponse> =>
return req.postJson('/algo/algorithm', algorithm);
};
export const runAlgorithm = (algorithm: Algorithm): Promise<BasicResponse> => {
return req.postJson('/algo/algorithm/run', algorithm);
};
export const updateAlgorithm = (algorithm: Algorithm): Promise<BasicResponse> => {
return req.putJson('/algo/algorithm', algorithm);
};