31 lines
572 B
Go
31 lines
572 B
Go
package admin
|
|
|
|
import (
|
|
. "../../../hotime"
|
|
. "../../../hotime/common"
|
|
"fmt"
|
|
)
|
|
|
|
var UserCtr = Ctr{
|
|
"info": func(this *Context) {
|
|
user := this.Db.Get(this.RouterString[1], "*", Map{"uid": this.RouterString[2]})
|
|
|
|
fmt.Println(user.Get("utime"), user.GetFloat64("utime"), user.GetInt("utime"))
|
|
this.Display(0, user)
|
|
},
|
|
"add": func(this *Context) {
|
|
|
|
},
|
|
"update": func(this *Context) {
|
|
|
|
},
|
|
"remove": func(this *Context) {
|
|
|
|
},
|
|
"search": func(this *Context) {
|
|
user := this.Db.Select(this.RouterString[1], "*")
|
|
fmt.Println(user)
|
|
this.Display(0, user)
|
|
},
|
|
}
|