feat: 初次启动

This commit is contained in:
Blizzard
2026-04-27 21:23:13 +08:00
parent e515f6a287
commit bb8ad4d515
148 changed files with 8602 additions and 5678 deletions
+21
View File
@@ -0,0 +1,21 @@
package config
import "github.com/zeromicro/go-zero/rest"
type Config struct {
rest.RestConf
Cors struct {
Enable bool
AllowOrigins []string
AllowMethods []string
AllowHeaders []string
}
Upstreams []Upstream
}
type Upstream struct {
Prefix string // URL 前缀,如 /api/user
Target string // 后端地址,如 http://127.0.0.1:9001
}