base.go 836 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. package constant
  2. const (
  3. TimeCriterionFormat = "2006-01-02 15:04:05"
  4. TimeMergeFormat = "20060102150405"
  5. )
  6. const (
  7. TraceIDHeader = "X-Request-Id"
  8. XTimestampHeader = "X-Timestamp"
  9. Authorization = "Authorization"
  10. AuthQrCode = "X-QrCode"
  11. )
  12. const (
  13. TokenInfoKey = "TokenInfoKey"
  14. )
  15. const MaxFileNameLength = 100
  16. const (
  17. AuthTokenTypeBasic = "Basic" // 平台内部账号的token验证
  18. AuthTokenTypeBearer = "Bearer" // 微信小程序用户的token验证
  19. )
  20. const (
  21. RootPath = "/Cold_Logistic"
  22. PdfStoragePath = RootPath + "/pdf"
  23. UploadPath = RootPath + "/upload"
  24. ExcelPath = RootPath + "/excel"
  25. ExportPath = RootPath + "/export"
  26. )
  27. const (
  28. CCLPlatformLoginJWTISS = "cclPlatformLogin"
  29. CCLAppletLoginJWTISS = "cclAppletLogin"
  30. )
  31. const LimitKeyCounterPrefix = "limitKeyCounterPrefix:"