constants.go 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. package utils
  2. const (
  3. Md5Key = "Ks@h64WJ#tcVgG8$&WlNfqvLAtMgpxWN"
  4. )
  5. //常量定义
  6. const (
  7. FormatTime = "15:04:05" //时间格式
  8. FormatDate = "2006-01-02" //日期格式
  9. FormatDateUnSpace = "20060102" //日期格式
  10. FormatDateTime = "2006-01-02 15:04:05" //完整时间格式
  11. HlbFormatDateTime = "2006-01-02_15:04:05.999" //完整时间格式
  12. FormatDateTimeUnSpace = "20060102150405" //完整时间格式
  13. PageSize15 = 15 //列表页每页数据量
  14. PageSize5 = 5
  15. PageSize10 = 10
  16. )
  17. const (
  18. APPNAME = "弘则-公共接口库"
  19. EmailSendToUsers = "glji@hzinsights.com;pyan@hzinsights.com;cxzhang@hzinsights.com"
  20. )
  21. //手机号,电子邮箱正则
  22. const (
  23. RegularMobile = "^((13[0-9])|(14[5|7])|(15([0-3]|[5-9]))|(18[0-9])|(17[0-9])|(16[0-9])|(19[0-9]))\\d{8}$" //手机号码
  24. RegularEmail = `\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*` //匹配电子邮箱
  25. )
  26. var (
  27. AccessKeyId string = "LTAIFMZYQhS2BTvW"
  28. AccessKeySecret string = "12kk1ptCHoGWedhBnKRVW5hRJzq9Fq"
  29. )
  30. const (
  31. Authorization = "dc855fce962a639faa779cbdd4cd332f"
  32. )
  33. const (
  34. WxCrmAppId = `wx67b68e39913e511e` //随手办公
  35. WxYbAppId = `wxb059c872d79b9967` //弘则研报小程序
  36. WxCygxAppId = `wxcc32b61f96720d2f` //弘则研报小程序
  37. )
  38. // 缓存key
  39. const (
  40. CACHE_WX_ACCESS_TOKEN_HZ = "wx:accesstoken:hzyj" //弘则研究公众号 微信accessToken
  41. )