24 lines
483 B
Go
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"`
|
|
}
|
|
}
|