mirror of
https://github.com/astaxie/beego.git
synced 2025-06-14 18:50:40 +00:00
modify struc
This commit is contained in:
11
examples/blog/controller/user.go
Normal file
11
examples/blog/controller/user.go
Normal file
@ -0,0 +1,11 @@
|
||||
package controller
|
||||
|
||||
import (
|
||||
"github.com/astaxie/beego/beego"
|
||||
"../model"
|
||||
)
|
||||
|
||||
func UserIndex(w beego.A) {
|
||||
userinfo :=model.User.getAll()
|
||||
beego.V.Render(w,"users/index")
|
||||
}
|
Reference in New Issue
Block a user