extend.go 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. package conf
  2. var ExtConfig Extend
  3. // Extend 扩展配置
  4. //
  5. // extend:
  6. // demo:
  7. // name: demo-name
  8. //
  9. // 使用方法: config.ExtConfig......即可!!
  10. type Extend struct {
  11. SubMail SubMail `yaml:"subMail"`
  12. Qiniu Qiniu `yaml:"qiniu"`
  13. Applet Applet `yaml:"applet"`
  14. Nats Nats `yaml:"nats"`
  15. Amap Amap `yaml:"amap"`
  16. Apk Apk `yaml:"apk"`
  17. }
  18. type SubMail struct {
  19. Appid string `json:"appid"`
  20. Signature string `json:"signature"`
  21. }
  22. type Qiniu struct {
  23. // Endpoint 访问域名
  24. Endpoint string `json:"endpoint"`
  25. // AccessKeyID AK `json:""
  26. AccessKeyID string `json:"accessKeyID"`
  27. // AccessKeySecret AKS `json:""
  28. AccessKeySecret string `json:"accessKeySecret"`
  29. // BucketName 桶名称 `json:""
  30. BucketName string `json:"bucketName"`
  31. }
  32. type Applet struct {
  33. Appid string `json:"appid"`
  34. AppSecret string `json:"appSecret"`
  35. WaybillUrl string `json:"waybillUrl"`
  36. }
  37. type Nats struct {
  38. Url string `json:"url"`
  39. }
  40. type Amap struct {
  41. Key string `json:"key"`
  42. }
  43. type Apk struct {
  44. Path string `json:"path"`
  45. }