2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 06:47:20 +08:00

feat: 移除工具箱和跑分应用

This commit is contained in:
2025-05-19 00:09:29 +08:00
parent d43090b84f
commit bc4fcfe6ed
11 changed files with 155 additions and 163 deletions

View File

@@ -1,12 +1,12 @@
package middleware
import (
"github.com/go-chi/chi/v5"
"net"
"net/http"
"slices"
"strings"
"github.com/go-chi/chi/v5"
"github.com/go-rat/chix"
"github.com/go-rat/sessions"
"github.com/knadh/koanf/v2"

View File

@@ -0,0 +1,6 @@
package request
type ToolboxBenchmarkTest struct {
Name string `json:"name" validate:"required|in:image,machine,compile,encryption,compression,physics,json,memory,disk"`
Multi bool `json:"multi"`
}

View File

@@ -0,0 +1,32 @@
package request
import "time"
type ToolboxSystemDNS struct {
DNS1 string `form:"dns1" json:"dns1" validate:"required"`
DNS2 string `form:"dns2" json:"dns2" validate:"required"`
}
type ToolboxSystemSWAP struct {
Size int64 `form:"size" json:"size" validate:"min:0"`
}
type ToolboxSystemTimezone struct {
Timezone string `form:"timezone" json:"timezone" validate:"required"`
}
type ToolboxSystemTime struct {
Time time.Time `form:"time" json:"time" validate:"required"`
}
type ToolboxSystemHostname struct {
Hostname string `form:"hostname" json:"hostname" validate:"required|regex:^[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$"`
}
type ToolboxSystemHosts struct {
Hosts string `form:"hosts" json:"hosts"`
}
type ToolboxSystemPassword struct {
Password string `form:"password" json:"password" validate:"required|password"`
}