mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 06:47:20 +08:00
feat: 移除工具箱和跑分应用
This commit is contained in:
@@ -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"
|
||||
|
||||
6
internal/http/request/toolbox_benchmark.go
Normal file
6
internal/http/request/toolbox_benchmark.go
Normal 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"`
|
||||
}
|
||||
32
internal/http/request/toolbox_system.go
Normal file
32
internal/http/request/toolbox_system.go
Normal 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"`
|
||||
}
|
||||
Reference in New Issue
Block a user