Files
sundynix-micro-be/app/auth/api/internal/config/config.go
T
2026-05-23 13:55:05 +08:00

24 lines
483 B
Go

package config
import (
"github.com/zeromicro/go-zero/rest"
"github.com/zeromicro/go-zero/zrpc"
)
type Config struct {
rest.RestConf
Auth struct {
AccessSecret string
AccessExpire int64
}
SystemRpc zrpc.RpcClientConf
// 各业务 RPC(可选,新增小程序时在此追加)
PlantRpc zrpc.RpcClientConf `json:",optional"`
// RadioRpc zrpc.RpcClientConf `json:",optional"` // 待接入
Redis struct {
Host string
Pass string
DB int `json:",optional"`
}
}