Browse Source

使用json "github.com/json-iterator/go" 代替json

pull/85/head
zhangxin 3 years ago
parent
commit
6c5801b7d4
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      grmi/Date.go
  2. +1
    -1
      grmi/DateTime.go

+ 2
- 2
grmi/Date.go View File

@ -2,8 +2,8 @@ package grmi
import ( import (
"LAPP_GAAS_GFrame_BACKEND/utils" "LAPP_GAAS_GFrame_BACKEND/utils"
"encoding/json"
"fmt" "fmt"
json "github.com/json-iterator/go"
"time" "time"
) )
@ -34,4 +34,4 @@ func (self *Date) Restore() time.Time {
func (self *Date) ToString() string { func (self *Date) ToString() string {
date := self.Restore() date := self.Restore()
return date.Format(DateOutFormat) return date.Format(DateOutFormat)
}
}

+ 1
- 1
grmi/DateTime.go View File

@ -2,8 +2,8 @@ package grmi
import ( import (
"LAPP_GAAS_GFrame_BACKEND/utils" "LAPP_GAAS_GFrame_BACKEND/utils"
"encoding/json"
"fmt" "fmt"
json "github.com/json-iterator/go"
"time" "time"
) )


Loading…
Cancel
Save