app-cloudep-portal-api-gateway/internal/config/config.go

24 lines
423 B
Go
Raw Normal View History

2024-08-25 07:08:49 +00:00
package config
2024-08-26 06:36:58 +00:00
import (
"time"
"github.com/zeromicro/go-zero/core/stores/redis"
"github.com/zeromicro/go-zero/rest"
"github.com/zeromicro/go-zero/zrpc"
)
2024-08-25 07:08:49 +00:00
type Config struct {
rest.RestConf
2024-08-26 06:36:58 +00:00
Token struct {
Expired time.Duration
}
// Redis Cluster
RedisCluster redis.RedisConf
AccountRpc zrpc.RpcClientConf
PermissionRpc zrpc.RpcClientConf
NotificationRpc zrpc.RpcClientConf
MailSender string
2024-08-25 07:08:49 +00:00
}