#15 optimize gormgen.sh

This commit is contained in:
新亮
2021-03-13 14:14:31 +08:00
parent 5e5db8917d
commit 4381a9a6f6
6 changed files with 126 additions and 41 deletions

View File

@@ -58,10 +58,6 @@ type Config struct {
Secret string `toml:"secret"`
ExpireDuration time.Duration `toml:"expireDuration"`
} `toml:"urlToken"`
Cmd struct {
GenTables string `toml:"genTables"`
} `toml:"cmd"`
}
func init() {

View File

@@ -36,7 +36,4 @@ expireDuration = 24 # JWT ExpiresAt 过期时间(单位:小时)
[urlToken]
secret = 'i1ydX9RtHyuJTrw7frcu' # URL Token secret
expireDuration = 10 # URL Token ExpiresAt 过期时间(单位:分钟)
[cmd]
genTables = 'user_demo'
expireDuration = 10 # URL Token ExpiresAt 过期时间(单位:分钟)