代码自动迁移动态适配

修改
- server/config.yaml
- server/config/config.go
- server/config/viper.go
- server/service/sys_auto_code.go
新增
- server/config/auto_code.go
This commit is contained in:
songzhibin97
2021-03-09 14:59:20 +08:00
parent 26dbd1446c
commit 45d552ac8c
5 changed files with 66 additions and 25 deletions
+22 -7
View File
@@ -54,15 +54,30 @@ captcha:
# mysql connect configuration
mysql:
path: ''
config: ''
db-name: ''
username: ''
password: ''
max-idle-conns: 10
max-open-conns: 100
config: charset=utf8mb4&parseTime=True&loc=Local
db-name: gva111
log-mode: false
log-zap: ""
max-idle-conns: 10
max-open-conns: 100
password: "123456"
path: 10.43.1.71:3306
username: root
autoCode:
root: ''
server: '/server'
server-api: '/api/v1'
server-model: '/model'
server-request: '/model/request/'
server-router: '/router'
server-service: '/service'
web: '/web/src'
web-api: '/api'
web-form: '/view/file1'
web-table: '/view/file1'
web-flow: '/view/file1'
# local configuration
local: