feat(csms): 充电桩添加 deviceName 字段,区别于 identifier 用于区分设备

This commit is contained in:
2026-03-16 13:43:46 +08:00
parent 0118dd2e15
commit 654a2a66d9
14 changed files with 2095 additions and 40 deletions

View File

@@ -75,6 +75,7 @@ export type ConnectionsStatus = {
export type ChargePoint = {
id: string;
chargePointIdentifier: string;
deviceName: string | null;
chargePointVendor: string | null;
chargePointModel: string | null;
registrationStatus: string;
@@ -90,6 +91,7 @@ export type ChargePoint = {
export type ChargePointDetail = {
id: string;
chargePointIdentifier: string;
deviceName: string | null;
chargePointVendor: string | null;
chargePointModel: string | null;
chargePointSerialNumber: string | null;
@@ -114,6 +116,7 @@ export type ChargePointDetail = {
export type Transaction = {
id: number;
chargePointIdentifier: string | null;
chargePointDeviceName: string | null;
connectorNumber: number | null;
idTag: string;
idTagStatus: string | null;
@@ -216,6 +219,7 @@ export const api = {
registrationStatus?: "Accepted" | "Pending" | "Rejected";
feePerKwh?: number;
pricingMode?: "fixed" | "tou";
deviceName?: string;
}) =>
apiFetch<ChargePoint>("/api/charge-points", {
method: "POST",
@@ -229,6 +233,7 @@ export const api = {
registrationStatus?: "Accepted" | "Pending" | "Rejected";
chargePointVendor?: string;
chargePointModel?: string;
deviceName?: string | null;
},
) =>
apiFetch<ChargePoint>(`/api/charge-points/${id}`, {