19 lines
358 B
Go
19 lines
358 B
Go
package config
|
|
|
|
import (
|
|
"github.com/zeromicro/go-zero/core/stores/cache"
|
|
"github.com/zeromicro/go-zero/zrpc"
|
|
)
|
|
|
|
type JwtConfig struct {
|
|
SecretKey string `json:"secretKey"`
|
|
Issuer string `json:"issuer"`
|
|
}
|
|
|
|
type Config struct {
|
|
zrpc.RpcServerConf
|
|
DataSource string `json:"dataSource"`
|
|
CacheConf cache.CacheConf
|
|
Jwt JwtConfig `json:"jwt"`
|
|
}
|