constants.go 913 B

12345678910111213141516171819202122232425
  1. package utils
  2. // 常量定义
  3. const (
  4. FormatTime = "15:04:05" //时间格式
  5. FormatDate = "2006-01-02" //日期格式
  6. FormatDateTime = "2006-01-02 15:04:05" //完整时间格式
  7. HlbFormatDateTime = "2006-01-02_15:04:05.999" //完整时间格式
  8. FormatDateTimeUnSpace = "20060102150405" //完整时间格式
  9. PageSize15 = 15 //列表页每页数据量
  10. PageSize5 = 5
  11. PageSize10 = 10
  12. PageSize20 = 20
  13. PageSize30 = 30
  14. )
  15. const (
  16. APPNAME = "ETA报告服务"
  17. )
  18. // 手机号,电子邮箱正则
  19. const (
  20. 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}$" //手机号码
  21. RegularEmail = `\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*` //匹配电子邮箱
  22. )