config.go 432 B

123456789101112131415161718192021
  1. package config
  2. import (
  3. "github.com/zeromicro/go-zero/core/logx"
  4. "github.com/zeromicro/go-zero/rest"
  5. "github.com/zeromicro/go-zero/zrpc"
  6. )
  7. type Config struct {
  8. rest.RestConf
  9. UserCenterRpcConf zrpc.RpcClientConf
  10. GatewayRpcConf zrpc.RpcClientConf
  11. Logx logx.LogConf
  12. Auth struct {
  13. AccessSecret string
  14. AccessExpire int64
  15. }
  16. ManagerUserIds []string
  17. }
  18. var ManagerUserIdsMap = map[string]bool{}