You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
689 B
29 lines
689 B
package config
|
|
|
|
import {{.authImport}}
|
|
import
|
|
type Config struct {
|
|
rest.RestConf
|
|
{{.auth}}
|
|
{{.jwtTrans}}
|
|
Mysql struct {
|
|
Host string `json:"host"`
|
|
Port int `json:"port"`
|
|
User string `json:"user"`
|
|
Password string `json:"password"`
|
|
Database string `json:"database"`
|
|
Charset string `json:"charset"`
|
|
}
|
|
Redis struct {
|
|
Host string `json:"host"`
|
|
Port int `json:"port"`
|
|
Password string `json:"password"`
|
|
Database int `json:"database"`
|
|
}
|
|
Auth struct {
|
|
AccessSecret string `json:"accessSecret"`
|
|
AccessExpire int64 `json:"accessExpire"`
|
|
RefreshSecret string `json:"refreshSecret"`
|
|
RefreshExpire int64 `json:"refreshExpire"`
|
|
}
|
|
}
|
|
|