KPI绩效考核系统
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.

18 lines
335 B

package initviper
import (
"key_performance_indicators/overall"
)
func LoadDatabase() {
sqlConfig := overall.CONSTANT_MYSQL
RunViper(&sqlConfig, overall.ConfigDatabaseConstant)
}
// 加载Redis
func LoadRedis() {
//读取Redis配置
redisConfig := overall.CONSTANT_Redis
RunViper(&redisConfig, overall.ConfigRedisConstant)
}