config.go 481 B

1234567891011121314151617181920
  1. // Code scaffolded by goctl. Safe to edit.
  2. // goctl 1.10.2
  3. package config
  4. import (
  5. "github.com/zeromicro/go-zero/core/stores/sqlx"
  6. "github.com/zeromicro/go-zero/rest"
  7. )
  8. type Config struct {
  9. rest.RestConf
  10. MySQL sqlx.SqlConf
  11. Mount MountConf
  12. // 注意: rest.RestConf 内嵌 service.ServiceConf 自带 Log logx.LogConf
  13. // (yaml 的 Log: 段,经匿名内嵌提升为 c.Log),供 internal/log 使用。
  14. }
  15. type MountConf struct {
  16. BaseDir string `json:",default=/var/ude/mnt"`
  17. }