- 添加 AMT Digest 认证服务 (AmtDigestService) - 添加 AMT 模拟服务用于测试 (AmtMockService) - 更新设备控制器支持 AMT 连接测试和设备信息获取 - 前端添加 AMT 自动添加方式,支持手动输入和凭证选择 - 移除 Basic 认证,仅使用 Digest 认证 - 添加 Apache HttpClient 依赖支持 Digest 认证 - 创建相关文档和测试脚本
80 lines
1.8 KiB
TypeScript
80 lines
1.8 KiB
TypeScript
declare namespace Api {
|
||
namespace Device {
|
||
/** 设备信息 */
|
||
interface Device {
|
||
/** 设备ID */
|
||
id: number;
|
||
/** 设备名称 */
|
||
deviceName: string;
|
||
/** 设备编号 */
|
||
deviceCode: string;
|
||
/** 设备类型 */
|
||
type: 'server' | 'switch' | 'router' | 'storage' | 'other';
|
||
/** 设备状态 */
|
||
status: 'online' | 'offline' | 'fault' | 'maintenance';
|
||
/** IP地址 */
|
||
ipAddress?: string;
|
||
/** MAC地址 */
|
||
macAddress?: string;
|
||
/** 所在位置 */
|
||
location?: string;
|
||
/** 负责人 */
|
||
manager?: string;
|
||
/** 备注 */
|
||
remark?: string;
|
||
/** 创建时间 */
|
||
createTime: string;
|
||
/** 更新时间 */
|
||
updateTime: string;
|
||
}
|
||
|
||
/** 设备编辑 */
|
||
interface DeviceEdit {
|
||
/** 设备ID(编辑时需要) */
|
||
id?: number;
|
||
/** 设备名称 */
|
||
deviceName: string;
|
||
/** 设备编号 */
|
||
deviceCode: string;
|
||
/** 设备类型 */
|
||
type: string;
|
||
/** 设备状态 */
|
||
status: string;
|
||
/** IP地址 */
|
||
ipAddress?: string;
|
||
/** MAC地址 */
|
||
macAddress?: string;
|
||
/** 所在位置 */
|
||
location?: string;
|
||
/** 负责人 */
|
||
manager?: string;
|
||
/** 备注 */
|
||
remark?: string;
|
||
}
|
||
|
||
/** AMT 测试请求 */
|
||
interface AmtTestRequest {
|
||
/** IP地址 */
|
||
ipAddress: string;
|
||
/** 用户名 */
|
||
username?: string;
|
||
/** 密码 */
|
||
password?: string;
|
||
/** 凭证ID */
|
||
credentialId?: number;
|
||
}
|
||
|
||
/** AMT 设备信息 */
|
||
interface AmtDeviceInfo {
|
||
/** 设备名称 */
|
||
deviceName: string;
|
||
/** 设备编号 */
|
||
deviceCode: string;
|
||
/** IP地址 */
|
||
ipAddress: string;
|
||
/** MAC地址 */
|
||
macAddress: string;
|
||
}
|
||
}
|
||
}
|