controllers

package
v0.0.3-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2022 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	DB *gorm.DB
}

Controller is a controller for this application

func New

func New() *Controller

New Controller

func (Controller) About

func (Controller) About(c echo.Context) error

* About "about.html" * * @target: All * @method: GET * @route: /about

func (*Controller) CreateUser

func (controller *Controller) CreateUser(c echo.Context) error

* User Add * * @target: Users * @method: GET or POST * @route: /users/add

func (*Controller) DeleteUser

func (controller *Controller) DeleteUser(c echo.Context) error

* Delete User ID * * @target: Users * @method: GET * @route: /users/delete/:id

func (Controller) Home

func (Controller) Home(c echo.Context) error

* Home "home.html" * * @target: All * @method: GET * @route: /

func (*Controller) Login

func (controller *Controller) Login(c echo.Context) error

* Session: Login * * @target: All * @method: GET * @route: /login

func (*Controller) Logout

func (controller *Controller) Logout(c echo.Context) error

* Session: Logout * * @target: Users * @method: GET * @route: /logout

func (*Controller) ReadUser

func (controller *Controller) ReadUser(c echo.Context) error

* Read User ID * * @target: Users * @method: GET * @route: /users/read/:id

func (*Controller) UpdateUser

func (controller *Controller) UpdateUser(c echo.Context) error

* Update User ID * * @target: Users * @method: GET or POST * @route: /users/view/:id

func (*Controller) UpdateUserByPassword

func (controller *Controller) UpdateUserByPassword(c echo.Context) error

* Update User ID by Password * * @target: Users * @method: GET or POST * @route: /users/view/:id/password

func (*Controller) Users

func (controller *Controller) Users(c echo.Context) error

* Users All * * @target: Users * @method: GET * @route: /users

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL