feat: 初次启动
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user