config.go 477 B

123456789101112131415161718192021222324252627
  1. package config
  2. import "github.com/zeromicro/go-zero/zrpc"
  3. type Config struct {
  4. zrpc.RpcServerConf
  5. Oss OssStruct
  6. }
  7. // OssStruct oss 阿里云附件上传服务
  8. type OssStruct struct {
  9. OssEndpoint string `json:"ossEndpoint"`
  10. OssAccessKeyID string `json:"ossAccessKeyId"`
  11. OssAccessKeySecret string `json:"ossAccessKeySecret"`
  12. }
  13. //日志信息
  14. type Logc struct {
  15. Mode string
  16. Path string
  17. Level []string
  18. KeepDays int
  19. }
  20. var C Config
  21. var LogC Logc