mirror of
https://gitee.com/san-bing/JChargePointProtocol
synced 2026-05-05 10:29:56 +08:00
添加查询充电枪状态接口
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user