feat(csms): 充电桩添加 deviceName 字段,区别于 identifier 用于区分设备
This commit is contained in:
@@ -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}`, {
|
||||
|
||||
Reference in New Issue
Block a user