extend.go 1015 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. }
  36. type Nats struct {
  37. Url string `json:"url"`
  38. }
  39. type Amap struct {
  40. Key string `json:"key"`
  41. }
  42. type Apk struct {
  43. Path string `json:"path"`
  44. }