config.go 608 B

12345678910111213141516171819202122232425262728293031
  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. AppUrl string
  19. Nsq string
  20. NsqTopic string
  21. }
  22. type Db struct {
  23. Mysql entity.Mysql `json:"mysql"`
  24. Redis entity.RedisStuct `json:"redis"`
  25. Es entity.EsStruct `json:"es"`
  26. Mongo entity.Mongo `json:"mongo"`
  27. }