fix:portal门户界面
This commit is contained in:
89
src/typings/api.d.ts
vendored
89
src/typings/api.d.ts
vendored
@@ -807,8 +807,8 @@ declare namespace Api {
|
||||
namespace Wlan {
|
||||
interface WlanGroup {
|
||||
wlanId: string;
|
||||
name: string;
|
||||
primary: boolean;
|
||||
wlanName: string;
|
||||
ssidList: SsidInfo[];
|
||||
}
|
||||
|
||||
type WlanGroupResponse = App.Service.ApiResponse<WlanGroup[]>;
|
||||
@@ -876,6 +876,91 @@ declare namespace Api {
|
||||
vlanId?: number;
|
||||
}
|
||||
}
|
||||
namespace Portal {
|
||||
interface Portal {
|
||||
id: string;
|
||||
name: string;
|
||||
enable: boolean;
|
||||
ssidNames: string[];
|
||||
ssidList: string[];
|
||||
networkList: string[];
|
||||
authType: number;
|
||||
hotspotTypes: any;
|
||||
}
|
||||
|
||||
|
||||
interface PortalResponse extends App.Service.ApiResponse<{
|
||||
rows: Portal[];
|
||||
total: number;
|
||||
}> {}
|
||||
}
|
||||
namespace Portal {
|
||||
// 先定义基础类型
|
||||
interface SsidInfo {
|
||||
ssidId: string;
|
||||
ssidName: string;
|
||||
}
|
||||
|
||||
interface WlanGroup {
|
||||
wlanId: string;
|
||||
wlanName: string;
|
||||
ssidList: SsidInfo[];
|
||||
}
|
||||
interface Portal {
|
||||
id: string;
|
||||
name: string;
|
||||
enable: boolean;
|
||||
ssidNames: string[];
|
||||
ssidList: string[];
|
||||
networkList: string[];
|
||||
authType: number;
|
||||
hotspotTypes: any;
|
||||
}
|
||||
|
||||
|
||||
interface PortalResponse extends App.Service.ApiResponse<{
|
||||
rows: Portal[];
|
||||
total: number;
|
||||
}> {}
|
||||
|
||||
|
||||
interface SsidListResponse extends App.Service.ApiResponse<WlanGroup[]> {}
|
||||
|
||||
interface AuthTimeout {
|
||||
customTimeout: number;
|
||||
customTimeoutUnit: 1 | 2 | 3; // 1:分钟 2:小时 3:天
|
||||
}
|
||||
|
||||
interface NoAuth {
|
||||
dailyLimitEnable: boolean;
|
||||
}
|
||||
interface ExternalPortal {
|
||||
hostType: 1 | 2; // 1: IP地址 2: URL
|
||||
serverUrl: string; // IP地址或URL值
|
||||
serverUrlScheme?: string; // URL时的协议类型
|
||||
}
|
||||
|
||||
interface ImportedPortalPage {
|
||||
id: string;
|
||||
}
|
||||
|
||||
interface AddPortalParams {
|
||||
name: string;
|
||||
enable: boolean;
|
||||
ssidList: string[];
|
||||
authType: number;
|
||||
authTimeout: AuthTimeout;
|
||||
noAuth: NoAuth;
|
||||
httpsRedirectEnable: boolean;
|
||||
landingPage: 1 | 2 | 3;
|
||||
landingUrlScheme?: string;
|
||||
landingUrl?: string;
|
||||
externalPortal?: ExternalPortal; // 添加外部Portal配置
|
||||
pageType: number;
|
||||
importedPortalPage: ImportedPortalPage;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
declare namespace App {
|
||||
|
||||
Reference in New Issue
Block a user