xyxie hace 5 meses
padre
commit
4a5bd52e05
Se han modificado 1 ficheros con 12 adiciones y 12 borrados
  1. 12 12
      utils/constants.go

+ 12 - 12
utils/constants.go

@@ -4,18 +4,18 @@ import "time"
 
 // 常量定义
 const (
-	FormatTime                 = "15:04:05"                //时间格式
-	FormatDate                 = "2006-01-02"              //日期格式
-	FormatDateUnSpace          = "20060102"                //日期格式
-	FormatDateWallWithLoc      = "2006-01-02T15:04:05Z"    //日期格式
-	FormatDateTime             = "2006-01-02 15:04:05"     //完整时间格式
-	FormatDateTimeMinute       = "2006-01-02 15:04"        //完整时间格式
-	HlbFormatDateTime          = "2006-01-02_15:04:05.999" //完整时间格式
-	FormatDateTimeUnSpace      = "20060102150405"          //完整时间格式
-	FormatShortDateTimeUnSpace = "060102150405"            //省去开头两位年份的时间格式
-	FormatYearMonthDate        = "2006-01"                 //日期格式
-	FormatYearMonthUnSpace     = "200601"                  //年月的日期格式
-	PageSize15                 = 15                        //列表页每页数据量
+	FormatTime                 = "15:04:05"                  //时间格式
+	FormatDate                 = "2006-01-02"                //日期格式
+	FormatDateUnSpace          = "20060102"                  //日期格式
+	FormatDateWallWithLoc      = "2006-01-02T15:04:05-07:00" //日期格式    //日期格式
+	FormatDateTime             = "2006-01-02 15:04:05"       //完整时间格式
+	FormatDateTimeMinute       = "2006-01-02 15:04"          //完整时间格式
+	HlbFormatDateTime          = "2006-01-02_15:04:05.999"   //完整时间格式
+	FormatDateTimeUnSpace      = "20060102150405"            //完整时间格式
+	FormatShortDateTimeUnSpace = "060102150405"              //省去开头两位年份的时间格式
+	FormatYearMonthDate        = "2006-01"                   //日期格式
+	FormatYearMonthUnSpace     = "200601"                    //年月的日期格式
+	PageSize15                 = 15                          //列表页每页数据量
 	PageSize5                  = 5
 	PageSize10                 = 10
 	PageSize20                 = 20