27 lines
574 B
Go
27 lines
574 B
Go
package config
|
|
|
|
import (
|
|
"github.com/saas-mingyang/mingyang-admin-common/config"
|
|
"github.com/zeromicro/go-zero/zrpc"
|
|
"time"
|
|
)
|
|
|
|
type Config struct {
|
|
zrpc.RpcServerConf
|
|
DatabaseConf config.DatabaseConf
|
|
JWTConf JWTConfig `json:"JWTConf"`
|
|
RedisConf config.RedisConf
|
|
IP2Location struct {
|
|
DBPath string `json:",default=./data/IP2LOCATION-LITE-DB.BIN"`
|
|
}
|
|
McmsRpc zrpc.RpcClientConf
|
|
}
|
|
|
|
type JWTConfig struct {
|
|
AccessTokenSecret string
|
|
RefreshTokenSecret string
|
|
AccessTokenExpiry time.Duration
|
|
RefreshTokenExpiry time.Duration
|
|
Issuer string
|
|
}
|