Move controller and page to new package.
This commit is contained in:
parent
c48f6bb9f4
commit
4e2f186dad
11 changed files with 29 additions and 18 deletions
|
|
@ -4,6 +4,7 @@ import (
|
|||
"fmt"
|
||||
|
||||
"goweb/auth"
|
||||
"goweb/controller"
|
||||
"goweb/ent"
|
||||
"goweb/ent/user"
|
||||
"goweb/msg"
|
||||
|
|
@ -13,7 +14,7 @@ import (
|
|||
|
||||
type (
|
||||
Login struct {
|
||||
Controller
|
||||
controller.Controller
|
||||
form LoginForm
|
||||
}
|
||||
|
||||
|
|
@ -24,7 +25,7 @@ type (
|
|||
)
|
||||
|
||||
func (l *Login) Get(c echo.Context) error {
|
||||
p := NewPage(c)
|
||||
p := controller.NewPage(c)
|
||||
p.Layout = "auth"
|
||||
p.Name = "login"
|
||||
p.Title = "Log in"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue