25 lines
383 B
Go
25 lines
383 B
Go
![]() |
package admin
|
||
|
|
||
|
import (
|
||
|
"github.com/revel/revel"
|
||
|
)
|
||
|
|
||
|
// admin 首页
|
||
|
|
||
|
type Admin struct {
|
||
|
AdminBaseController
|
||
|
}
|
||
|
|
||
|
// admin 主页
|
||
|
func (c Admin) Index() revel.Result {
|
||
|
c.SetUserInfo()
|
||
|
|
||
|
c.RenderArgs["title"] = "leanote"
|
||
|
c.SetLocale()
|
||
|
|
||
|
return c.RenderTemplate("admin/index.html");
|
||
|
}
|
||
|
|
||
|
func (c Admin) GetView(view string) revel.Result {
|
||
|
return c.RenderTemplate("admin/" + view);
|
||
|
}
|