fix:portal门户界面
This commit is contained in:
@@ -348,6 +348,59 @@ export function updateWlanSsid(siteId: string, wlanId: string, ssidId: string, p
|
||||
data: params
|
||||
});
|
||||
}
|
||||
/** 获取门户列表 */
|
||||
export function fetchPortalList(siteId: string, params: { pageNum: number; pageSize: number }) {
|
||||
return request<Api.Portal.PortalResponse>({
|
||||
url: `/system/portal/${siteId}`,
|
||||
method: 'get',
|
||||
params: {
|
||||
pageNum: params.pageNum,
|
||||
pageSize: params.pageSize
|
||||
}
|
||||
});
|
||||
}
|
||||
/** 获取 SSID 列表 */
|
||||
export function fetchSsidList(siteId: string) {
|
||||
return request<Api.Portal.SsidListResponse>({
|
||||
url: `/system/wlan/ssids/${siteId}`,
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
||||
/** 添加门户 */
|
||||
export function addPortal(siteId: string, params: Api.Portal.AddPortalParams) {
|
||||
return request<any>({
|
||||
url: `/system/portal/${siteId}`,
|
||||
method: 'post',
|
||||
data: params
|
||||
});
|
||||
}
|
||||
/** 获取门户配置 */
|
||||
export function getPortalConfig(siteId: string, portalId: string) {
|
||||
return request<Api.Portal.AddPortalParams>({
|
||||
url: `/system/portal/${siteId}/${portalId}`,
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
||||
/** 更新门户配置 */
|
||||
export function updatePortalConfig(siteId: string, portalId: string, params: Api.Portal.AddPortalParams) {
|
||||
return request<any>({
|
||||
url: `/system/portal/${siteId}/${portalId}`,
|
||||
method: 'put',
|
||||
data: params
|
||||
});
|
||||
}
|
||||
/** 删除门户 */
|
||||
export function deletePortal(siteId: string, portalId: string) {
|
||||
return request<any>({
|
||||
url: `/system/portal/${siteId}/${portalId}`,
|
||||
method: 'delete'
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user