config.go 521 B

12345678910111213141516171819202122232425262728
  1. package config
  2. import (
  3. "jyBXSubscribe/entity"
  4. "github.com/zeromicro/go-zero/zrpc"
  5. )
  6. type Config struct {
  7. zrpc.RpcServerConf
  8. Webrpcport int64
  9. DefaultDay int
  10. DefaulCount struct {
  11. Pay int
  12. Free int
  13. }
  14. CodeServiceConf zrpc.RpcClientConf
  15. UserCenterKey string
  16. PowerCheckCenterKey string
  17. EntManageApplication string
  18. }
  19. type Db struct {
  20. Mysql entity.Mysql `json:"mysql"`
  21. Redis entity.RedisStuct `json:"redis"`
  22. Es entity.EsStruct `json:"es"`
  23. Mongo entity.Mongo `json:"mongo"`
  24. }