config.go 550 B

1234567891011121314151617181920212223242526272829
  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. }
  20. type Db struct {
  21. Mysql entity.Mysql `json:"mysql"`
  22. Redis entity.RedisStuct `json:"redis"`
  23. Es entity.EsStruct `json:"es"`
  24. Mongo entity.Mongo `json:"mongo"`
  25. }