2025-04-30 00:17:09 +08:00

14 lines
305 B
TypeScript

import http from '@core/http';
import type { RobotInfo } from './type';
const enum API {
= '/robot/getAll',
}
export async function getAllRobot(): Promise<RobotInfo[]> {
type D = RobotInfo[];
const data = await http.get<D>(API.);
return data ?? [];
}