This commit is contained in:
kron
2025-08-04 17:54:59 +08:00
parent 97d23aa731
commit 05f0c14920
4 changed files with 75 additions and 13 deletions

View File

@@ -368,9 +368,31 @@ export const getPointBookConfigAPI = async () => {
return request("GET", "/user/score/sheet/option");
};
export const savePointBookAPI = async (
bowType,
distance,
targetType,
groups,
arrows,
group_data = []
) => {
return request("POST", "/user/score/sheet/report", {
bowType,
distance,
targetType,
groups,
arrows,
group_data,
});
};
export const getPointBookListAPI = async (page = 1, size = 10) => {
return request(
"GET",
`/user/score/sheet/list?pageNum=${page}&pageSize=${size}`
);
};
export const getPointBookDetailAPI = async (id) => {
return request("GET", `/user/score/sheet/detail?id=${id}`);
};