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 {
|
2024-08-27 07:40:00 +00:00
|
|
|
Secret string
|
2024-08-26 06:36:58 +00:00
|
|
|
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
|
|
|
}
|