controllers

package
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: MIT Imports: 12 Imported by: 0

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) DeletePermanently

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

* Delete Permanently * * @target: [Admin] Delete Permanently * @method: GET * @route: /admin/delete-permanently

func (*Controller) DeletePermanentlyByID

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

* Delete Permanently By ID * * @target: [Admin] Delete Permanently By ID * @method: GET * @route: /admin/delete/permanently/:id

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 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) RestoreUser

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

* Restore User * * @target: [Admin] Restore User * @method: GET * @route: /admin/restore/: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