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 {
|
||||
|
||||
6
src/typings/auto-imports.d.ts
vendored
6
src/typings/auto-imports.d.ts
vendored
@@ -14,6 +14,7 @@ declare global {
|
||||
const addData: typeof import('../service/api/dictData')['addData']
|
||||
const addJob: typeof import('../service/api/job')['addJob']
|
||||
const addPackage: typeof import('../service/api/auth')['addPackage']
|
||||
const addPortal: typeof import('../service/api/auth')['addPortal']
|
||||
const addRateLimit: typeof import('../service/api/auth')['addRateLimit']
|
||||
const addThemeVarsToHtml: typeof import('../store/modules/theme/shared')['addThemeVarsToHtml']
|
||||
const addWlanSsid: typeof import('../service/api/auth')['addWlanSsid']
|
||||
@@ -66,6 +67,7 @@ declare global {
|
||||
const delJobLog: typeof import('../service/api/job')['delJobLog']
|
||||
const deleteApDevices: typeof import('../service/api/auth')['deleteApDevices']
|
||||
const deletePackage: typeof import('../service/api/auth')['deletePackage']
|
||||
const deletePortal: typeof import('../service/api/auth')['deletePortal']
|
||||
const deleteWlanSsid: typeof import('../service/api/auth')['deleteWlanSsid']
|
||||
const describe: typeof import('vitest')['describe']
|
||||
const dict: typeof import('../store/modules/dict/index')['default']
|
||||
@@ -142,10 +144,12 @@ declare global {
|
||||
const fetchKycList: typeof import('../service/api/auth')['fetchKycList']
|
||||
const fetchLogin: typeof import('../service/api/auth')['fetchLogin']
|
||||
const fetchPackageList: typeof import('../service/api/auth')['fetchPackageList']
|
||||
const fetchPortalList: typeof import('../service/api/auth')['fetchPortalList']
|
||||
const fetchRateLimitList: typeof import('../service/api/auth')['fetchRateLimitList']
|
||||
const fetchRefreshToken: typeof import('../service/api/auth')['fetchRefreshToken']
|
||||
const fetchRegister: typeof import('../service/api/auth')['fetchRegister']
|
||||
const fetchSiteList: typeof import('../service/api/auth')['fetchSiteList']
|
||||
const fetchSsidList: typeof import('../service/api/auth')['fetchSsidList']
|
||||
const fetchTerminalList: typeof import('../service/api/auth')['fetchTerminalList']
|
||||
const fetchWlanGroups: typeof import('../service/api/auth')['fetchWlanGroups']
|
||||
const fetchWlanSsidList: typeof import('../service/api/auth')['fetchWlanSsidList']
|
||||
@@ -175,6 +179,7 @@ declare global {
|
||||
const getFixedTabs: typeof import('../store/modules/tab/shared')['getFixedTabs']
|
||||
const getGlobalMenusByAuthRoutes: typeof import('../store/modules/route/shared')['getGlobalMenusByAuthRoutes']
|
||||
const getLocalizedTimeUnit: typeof import('../utils/units')['getLocalizedTimeUnit']
|
||||
const getPortalConfig: typeof import('../service/api/auth')['getPortalConfig']
|
||||
const getRouteIcons: typeof import('../store/modules/tab/shared')['getRouteIcons']
|
||||
const getSelectedMenuKeyPathByKey: typeof import('../store/modules/route/shared')['getSelectedMenuKeyPathByKey']
|
||||
const getServiceBaseURL: typeof import('../utils/service')['getServiceBaseURL']
|
||||
@@ -299,6 +304,7 @@ declare global {
|
||||
const updateJob: typeof import('../service/api/job')['updateJob']
|
||||
const updateLocaleOfGlobalMenus: typeof import('../store/modules/route/shared')['updateLocaleOfGlobalMenus']
|
||||
const updatePackage: typeof import('../service/api/auth')['updatePackage']
|
||||
const updatePortalConfig: typeof import('../service/api/auth')['updatePortalConfig']
|
||||
const updateTabByI18nKey: typeof import('../store/modules/tab/shared')['updateTabByI18nKey']
|
||||
const updateTabsByI18nKey: typeof import('../store/modules/tab/shared')['updateTabsByI18nKey']
|
||||
const updateWlanSsid: typeof import('../service/api/auth')['updateWlanSsid']
|
||||
|
||||
Reference in New Issue
Block a user