This commit is contained in:
2024-09-24 13:31:28 +08:00
parent 2bdc5e666b
commit e952657166
17 changed files with 521 additions and 85 deletions

14
config/config.go Normal file
View File

@ -0,0 +1,14 @@
package config
var Cfg Config
// Config 配置
type Config struct {
Server Server
}
// Server 服务配置
type Server struct {
AppMode string // 应用模式
ServerPort string // 服务端口
}

4
config/config.yaml Normal file
View File

@ -0,0 +1,4 @@
# 本地运行的配置文件
Server:
AppMode: debug # debug 开发环境, release 生产环境
ServerPort: :80 # 服务端口