网关实现自定义接口安全检查与边缘节点连接权限验证

This commit is contained in:
2025-05-15 15:56:20 +08:00
parent b29882f0a7
commit d65fe4db6f
25 changed files with 353 additions and 703 deletions

10
server/core/auth.go Normal file
View File

@@ -0,0 +1,10 @@
package core
import "time"
type Permit struct {
Expire time.Time `json:"expire"`
Whitelists []string `json:"whitelists"`
Username string `json:"username"`
Password string `json:"password"`
}