controllers

package
v0.0.0-...-ad06c44 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2020 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorController

type ErrorController struct {
	beego.Controller
}

ErrorController はエラー画面の表示を行う

func (*ErrorController) Error400

func (c *ErrorController) Error400()

Error400 はバリデーションエラーを表示する

func (*ErrorController) Error422

func (c *ErrorController) Error422()

Error422 はリクエストエラーを表示する

func (*ErrorController) Error500

func (c *ErrorController) Error500()

Error500 はサーバーエラーを表示する

type MainController

type MainController struct {
	beego.Controller
}

MainController はメインページの制御を行う

func (*MainController) Get

func (c *MainController) Get()

Get は投稿一覧を表示する @router / [get]

func (*MainController) Post

func (c *MainController) Post()

Post は投稿を行う @Param author {string} string true 投稿者名 @Param body {string} string true 投稿の本文 @router / [post]

Jump to

Keyboard shortcuts

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