feat: 最後量測時間
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
import type {
|
||||
GeneratePhysicalFitnessResponse,
|
||||
PhysicalFitnessItem,
|
||||
PhysicalFitnessResponse,
|
||||
} from "./types";
|
||||
import { api } from "./client";
|
||||
|
||||
/** 取得指定使用者的 11 項最新體適能測驗成績。 */
|
||||
export function fetchPhysicalFitness(
|
||||
userID: string,
|
||||
): Promise<PhysicalFitnessItem[]> {
|
||||
): Promise<PhysicalFitnessResponse> {
|
||||
return api
|
||||
.get(`v1/physical-fitness/${encodeURIComponent(userID)}`)
|
||||
.json<PhysicalFitnessItem[]>();
|
||||
.json<PhysicalFitnessResponse>();
|
||||
}
|
||||
|
||||
/** 產生指定使用者的體適能評級。 */
|
||||
|
||||
Reference in New Issue
Block a user