2
0

feat:站点列表功能拓展、绑定邮箱、修改密码

This commit is contained in:
zhongzm
2025-04-01 15:21:08 +08:00
parent 42d10809e7
commit b27aebed73
11 changed files with 1319 additions and 51 deletions

24
src/typings/api.d.ts vendored
View File

@@ -788,6 +788,30 @@ declare namespace Api {
supportL2: boolean;
}
interface AddSiteParams {
name: string;
region: string;
timeZone: string;
scenario: string;
deviceAccountSetting: {
username: string;
password: string;
};
}
interface SiteConfig {
name: string;
region: string;
timeZone: string;
scenario: string;
}
interface UpdateSiteParams {
name: string;
region: string;
timeZone: string;
scenario: string;
}
interface SiteParams {
pageNum: number;
pageSize: number;

View File

@@ -16,6 +16,7 @@ declare global {
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 addSite: typeof import('../service/api/auth')['addSite']
const addThemeVarsToHtml: typeof import('../store/modules/theme/shared')['addThemeVarsToHtml']
const addWlanSsid: typeof import('../service/api/auth')['addWlanSsid']
const adoptApDevice: typeof import('../service/api/auth')['adoptApDevice']
@@ -68,6 +69,7 @@ declare global {
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 deleteSite: typeof import('../service/api/auth')['deleteSite']
const deleteWlanSsid: typeof import('../service/api/auth')['deleteWlanSsid']
const describe: typeof import('vitest')['describe']
const dict: typeof import('../store/modules/dict/index')['default']
@@ -176,6 +178,7 @@ declare global {
const getDefaultHomeTab: typeof import('../store/modules/tab/shared')['getDefaultHomeTab']
const getDictDataType: typeof import('../service/api/dict')['getDictDataType']
const getDictOptionselect: typeof import('../service/api/dict')['getDictOptionselect']
const getEmailCode: typeof import('../service/api/auth')['getEmailCode']
const getFixedTabIds: typeof import('../store/modules/tab/shared')['getFixedTabIds']
const getFixedTabs: typeof import('../store/modules/tab/shared')['getFixedTabs']
const getGlobalMenusByAuthRoutes: typeof import('../store/modules/route/shared')['getGlobalMenusByAuthRoutes']
@@ -184,9 +187,11 @@ declare global {
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']
const getSiteConfig: typeof import('../service/api/auth')['getSiteConfig']
const getTabByRoute: typeof import('../store/modules/tab/shared')['getTabByRoute']
const getTabIdByRoute: typeof import('../store/modules/tab/shared')['getTabIdByRoute']
const getToken: typeof import('../store/modules/auth/shared')['getToken']
const getUserProfile: typeof import('../service/api/auth')['getUserProfile']
const getWlanSsidConfig: typeof import('../service/api/auth')['getWlanSsidConfig']
const h: typeof import('vue')['h']
const ignorableWatch: typeof import('@vueuse/core')['ignorableWatch']
@@ -255,6 +260,7 @@ declare global {
const rejectKyc: typeof import('../service/api/auth')['rejectKyc']
const removeEmptyChildren: typeof import('../utils/menu')['removeEmptyChildren']
const removeRateLimit: typeof import('../service/api/auth')['removeRateLimit']
const resetPassword: typeof import('../service/api/auth')['resetPassword']
const resolveComponent: typeof import('vue')['resolveComponent']
const resolveRef: typeof import('@vueuse/core')['resolveRef']
const resolveUnref: typeof import('@vueuse/core')['resolveUnref']
@@ -306,9 +312,12 @@ 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 updatePasswordByOld: typeof import('../service/api/auth')['updatePasswordByOld']
const updatePortalConfig: typeof import('../service/api/auth')['updatePortalConfig']
const updateSite: typeof import('../service/api/auth')['updateSite']
const updateTabByI18nKey: typeof import('../store/modules/tab/shared')['updateTabByI18nKey']
const updateTabsByI18nKey: typeof import('../store/modules/tab/shared')['updateTabsByI18nKey']
const updateUserProfile: typeof import('../service/api/auth')['updateUserProfile']
const updateWlanSsid: typeof import('../service/api/auth')['updateWlanSsid']
const useActiveElement: typeof import('@vueuse/core')['useActiveElement']
const useAnimate: typeof import('@vueuse/core')['useAnimate']