...
This commit is contained in:
22
src/apis.js
22
src/apis.js
@@ -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}`);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user