mirror of
https://gitee.com/mirrors/AllinSSL.git
synced 2026-03-08 07:41:10 +08:00
【调整】1panel网站列表
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"ALLinSSL/backend/app/dto/response"
|
||||
"ALLinSSL/backend/internal/access"
|
||||
"ALLinSSL/backend/internal/cert/deploy"
|
||||
"ALLinSSL/backend/public"
|
||||
@@ -353,11 +354,13 @@ func GetSiteList(c *gin.Context) {
|
||||
public.FailMsg(c, err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
var siteList []any
|
||||
|
||||
var siteList []response.AccessSiteList
|
||||
switch form.Type {
|
||||
case "btpanel-site":
|
||||
siteList, err = deploy.BtPanelSiteList(form.ID)
|
||||
case "1panel-site":
|
||||
siteList, err = deploy.OnePanelSiteList(form.ID)
|
||||
default:
|
||||
public.FailMsg(c, "不支持的提供商")
|
||||
}
|
||||
|
||||
7
backend/app/dto/response/access.go
Normal file
7
backend/app/dto/response/access.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package response
|
||||
|
||||
type AccessSiteList struct {
|
||||
Id string `json:"id"`
|
||||
SiteName string `json:"siteName"`
|
||||
Domain []string `json:"domain"`
|
||||
}
|
||||
Reference in New Issue
Block a user