fix issue in gconv.Interfaces; improve storage interface for gsession

This commit is contained in:
John
2019-10-25 13:49:03 +08:00
parent 5adc9be0d9
commit cf34d7bd56
6 changed files with 23 additions and 25 deletions

View File

@ -12,11 +12,9 @@ func main() {
// 开启调试模式以便于记录所有执行的SQL
db.SetDebug(true)
fmt.Println(time.Now())
r, e := db.Table("user").Data(g.Map{
"passport": "1",
"password": "1",
"nickname": "1",
"create_time": time.Now(),
"create_time": time.Now().Local(),
}).Insert()
if e != nil {
panic(e)