添加查询充电枪状态接口

This commit is contained in:
三丙
2025-09-27 18:04:00 +08:00
parent 7a03cc98a7
commit a1e0a09320
74 changed files with 1727 additions and 259 deletions

View File

@@ -31,3 +31,8 @@ export const getGun = async (id: string): Promise<Gun> => {
return response.data.data;
};
export const getGunByCode = async (gunCode: string): Promise<Gun> => {
const response = await api.get(`/api/guns/code/${gunCode}`);
return response.data.data;
};