feat: rbac迁移完成,并已部署至dev服务器
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
package config
|
||||
|
||||
import "github.com/zeromicro/go-zero/rest"
|
||||
import (
|
||||
"github.com/zeromicro/go-zero/rest"
|
||||
"github.com/zeromicro/go-zero/zrpc"
|
||||
)
|
||||
|
||||
type Config struct {
|
||||
rest.RestConf
|
||||
@@ -13,6 +16,15 @@ type Config struct {
|
||||
}
|
||||
|
||||
Upstreams []Upstream
|
||||
|
||||
// system-rpc 连接(用于写入操作日志)
|
||||
SystemRpc zrpc.RpcClientConf
|
||||
|
||||
// JWT 密钥(用于解析 Token 获取 userId,与 user-api 的 Auth.AccessSecret 保持一致)
|
||||
JwtSecret string `json:",optional"`
|
||||
|
||||
// 无需鉴权的路径白名单
|
||||
AuthWhitelist []string `json:",optional"`
|
||||
}
|
||||
|
||||
type Upstream struct {
|
||||
|
||||
Reference in New Issue
Block a user