refactor: 移除 API 接口中冗余的 [key: string]: unknown 索引签名
- user.ts: 移除 UserProfile、UserInfoVO 的索引签名 - rosCar.ts: 移除 8 个接口的索引签名(RosLift、RosCar、RosInspectionRecord 等) - 遵循"用到就补字段声明"原则,保留完整类型检查
This commit is contained in:
@@ -21,7 +21,6 @@ export interface RosLift {
|
||||
liftErrorDescription?: string;
|
||||
/** 升降柱高度 */
|
||||
liftHeight?: number;
|
||||
[key: string]: unknown;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -75,7 +74,6 @@ export interface RosCar {
|
||||
createTime?: string;
|
||||
/** 更新时间 */
|
||||
updateTime?: string;
|
||||
[key: string]: unknown;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -133,7 +131,6 @@ export interface RosInspectionRecord {
|
||||
createTime?: string;
|
||||
/** 更新时间 */
|
||||
updateTime?: string;
|
||||
[key: string]: unknown;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -149,7 +146,6 @@ export interface RosInspectionTaskNodeDTO {
|
||||
poseY?: number;
|
||||
/** 节点顺序 */
|
||||
nodeIndex?: number;
|
||||
[key: string]: unknown;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -161,7 +157,6 @@ export interface RosInspectionTaskRoundDTO {
|
||||
roundIndex?: number;
|
||||
/** 本轮行走方向:forward 正走 / backward 倒走 */
|
||||
direction?: string;
|
||||
[key: string]: unknown;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -177,7 +172,6 @@ export interface RosInspectionActionDTO {
|
||||
command?: number;
|
||||
/** 动作参数 */
|
||||
params?: Record<string, unknown>;
|
||||
[key: string]: unknown;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -206,7 +200,6 @@ export interface RosInspectionTaskDetailDTO {
|
||||
rounds?: RosInspectionTaskRoundDTO[];
|
||||
/** 巡检动作模板列表 */
|
||||
actions?: RosInspectionActionDTO[];
|
||||
[key: string]: unknown;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -219,7 +212,6 @@ export interface RosDispatchResultDTO {
|
||||
accepted?: boolean;
|
||||
/** 下发结果说明 */
|
||||
message?: string;
|
||||
[key: string]: unknown;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -33,7 +33,6 @@ export interface UserProfile {
|
||||
phone?: string;
|
||||
/** 状态 */
|
||||
status?: number;
|
||||
[key: string]: unknown;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -50,7 +49,6 @@ export interface UserInfoVO {
|
||||
permissions?: string[];
|
||||
/** 用户个人资料 */
|
||||
profile?: UserProfile;
|
||||
[key: string]: unknown;
|
||||
}
|
||||
|
||||
export function getPublicKey() {
|
||||
|
||||
Reference in New Issue
Block a user