feat: server run env config
This commit is contained in:
+2
-1
@@ -1,6 +1,7 @@
|
||||
# 启动端口号
|
||||
# 服务端启动配置
|
||||
server:
|
||||
port: 8000
|
||||
runenv: dev
|
||||
|
||||
# MySQL数据库配置
|
||||
mysql:
|
||||
|
||||
@@ -10,9 +10,10 @@ type Config struct {
|
||||
Alipay Alipay `mapstructure:"alipay"`
|
||||
}
|
||||
|
||||
// 服务启动端口号配置
|
||||
// 服务端启动配置
|
||||
type Server struct {
|
||||
Port int `mapstructure:"port"`
|
||||
Port int `mapstructure:"port"`
|
||||
Runenv string `mapstructure:"runenv"`
|
||||
}
|
||||
|
||||
// MySQL数据库配置
|
||||
|
||||
Reference in New Issue
Block a user