fix:ap设备界面功能增加
This commit is contained in:
139
src/typings/api.d.ts
vendored
139
src/typings/api.d.ts
vendored
@@ -540,21 +540,41 @@ declare namespace Api {
|
||||
|
||||
namespace Device {
|
||||
interface ApDevice {
|
||||
id: number;
|
||||
mac: string;
|
||||
ip: string;
|
||||
name: string;
|
||||
status: number;
|
||||
type: string;
|
||||
subtype: string | null;
|
||||
deviceSeriesType: number;
|
||||
model: string;
|
||||
ip: string;
|
||||
ipv6: string | null;
|
||||
uptime: string;
|
||||
createBy: string | null;
|
||||
createTime: string;
|
||||
updateBy: string | null;
|
||||
updateTime: string | null;
|
||||
operate?: string;
|
||||
status: number;
|
||||
lastSeen: number;
|
||||
cpuUtil: number;
|
||||
memUtil: number;
|
||||
sn: string;
|
||||
licenseStatus: number;
|
||||
tagName: string | null;
|
||||
uplinkDeviceMac: string | null;
|
||||
uplinkDeviceName: string | null;
|
||||
uplinkDevicePort: string | null;
|
||||
linkSpeed: string | null;
|
||||
duplex: string | null;
|
||||
switchConsistent: boolean;
|
||||
publicIp: string;
|
||||
firmwareVersion: string;
|
||||
}
|
||||
interface ApDeviceListData {
|
||||
total: number;
|
||||
rows: ApDevice[];
|
||||
}
|
||||
|
||||
type ApDeviceResponse = App.Service.Response<Api.Common.PaginatingQueryRecord<ApDevice>>;
|
||||
interface ApDeviceResponse {
|
||||
code: number;
|
||||
msg: string;
|
||||
data: ApDeviceListData;
|
||||
}
|
||||
|
||||
interface ApDeviceParams {
|
||||
pageNum: number;
|
||||
@@ -591,6 +611,62 @@ declare namespace Api {
|
||||
clientDeviceType?: string;
|
||||
clientMac?: string;
|
||||
}
|
||||
/** AP设备添加参数 */
|
||||
interface AddApDeviceItem {
|
||||
sn?: string;
|
||||
name?: string;
|
||||
username?: string;
|
||||
password?: string;
|
||||
}
|
||||
interface AddApDeviceParams {
|
||||
devices: AddApDeviceItem[];
|
||||
}
|
||||
interface ApDeviceLocation {
|
||||
longitude: number;
|
||||
latitude: number;
|
||||
address: string;
|
||||
}
|
||||
|
||||
interface ApDeviceConfigData {
|
||||
name: string;
|
||||
ledSetting: number;
|
||||
tagIds: string[];
|
||||
location: ApDeviceLocation;
|
||||
}
|
||||
|
||||
interface ApDeviceConfigResponse {
|
||||
code: number;
|
||||
msg: string;
|
||||
data: {
|
||||
name: string;
|
||||
ledSetting: number;
|
||||
tagIds: string[];
|
||||
location: {
|
||||
longitude: number;
|
||||
latitude: number;
|
||||
address: string;
|
||||
}
|
||||
}|null;
|
||||
}
|
||||
|
||||
interface ApDeviceConfigUpdate {
|
||||
name?: string;
|
||||
ledSetting?: number;
|
||||
tagIds?: string[];
|
||||
location?: {
|
||||
longitude?: number;
|
||||
latitude?: number;
|
||||
address?: string;
|
||||
}
|
||||
}
|
||||
interface ApDeviceConfigForm {
|
||||
name: string;
|
||||
ledSetting: number;
|
||||
tagIds?: string[];
|
||||
longitude?: number;
|
||||
latitude?: number;
|
||||
address?: string;
|
||||
}
|
||||
}
|
||||
|
||||
namespace Billing {
|
||||
@@ -696,4 +772,49 @@ declare namespace Api {
|
||||
total: number;
|
||||
}
|
||||
}
|
||||
namespace Site {
|
||||
interface SiteInfo {
|
||||
siteId: string;
|
||||
name: string;
|
||||
tagIds: string[];
|
||||
region: string;
|
||||
timeZone: string;
|
||||
scenario: string;
|
||||
longitude: number | null;
|
||||
latitude: number | null;
|
||||
address: string | null;
|
||||
type: number;
|
||||
supportES: boolean;
|
||||
supportL2: boolean;
|
||||
}
|
||||
|
||||
interface SiteParams {
|
||||
pageNum: number;
|
||||
pageSize: number;
|
||||
}
|
||||
|
||||
interface SiteListData {
|
||||
total: number;
|
||||
rows: SiteInfo[];
|
||||
}
|
||||
|
||||
interface SiteResponse {
|
||||
code: number;
|
||||
msg: string;
|
||||
data: SiteListData;
|
||||
}
|
||||
}
|
||||
namespace Wlan {
|
||||
interface WlanGroup {
|
||||
wlanId: string;
|
||||
name: string;
|
||||
primary: boolean;
|
||||
}
|
||||
|
||||
interface WlanGroupResponse {
|
||||
code: number;
|
||||
msg: string;
|
||||
data: WlanGroup[];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user