添加自定义首页 状态码

This commit is contained in:
bjdgyc
2024-03-21 18:09:47 +08:00
parent 11f39d0b78
commit 8777501391
7 changed files with 376 additions and 179 deletions

View File

@@ -1,6 +1,7 @@
package dbdata
import (
"net/http"
"time"
"github.com/bjdgyc/anylink/base"
@@ -121,6 +122,7 @@ func addInitData() error {
other := &SettingOther{
LinkAddr: "vpn.xx.com",
Banner: "您已接入公司网络,请按照公司规定使用。\n请勿进行非工作下载及视频行为",
Homecode: http.StatusOK,
Homeindex: "AnyLink 是一个企业级远程办公 sslvpn 的软件,可以支持多人同时在线使用。",
AccountMail: accountMail,
}

View File

@@ -29,6 +29,7 @@ type SettingAuditLog struct {
type SettingOther struct {
LinkAddr string `json:"link_addr"`
Banner string `json:"banner"`
Homecode int `json:"homecode"`
Homeindex string `json:"homeindex"`
AccountMail string `json:"account_mail"`
}