controllersTag

package
v0.0.0-...-a74fbde Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteRequest

type DeleteRequest struct {
	UserContributionID int `form:"cid"`
	ID                 int `form:"id"`
}

DeleteRequest 削除リクエスト

type DeleteResponse

type DeleteResponse struct {
	Warning bool       `json:"warning"`
	Message string     `json:"message"`
	Tag     []tags.Tag `json:"tags"`
}

DeleteResponse 削除レスポンス

type MainController

type MainController struct {
	controllers.BaseController
}

MainController コントローラ

func (*MainController) Delete

func (c *MainController) Delete()

Delete 削除する

func (*MainController) Post

func (c *MainController) Post()

Post 追加する

type PostResponse

type PostResponse struct {
	Warning bool       `json:"warning"`
	Message string     `json:"message"`
	Tag     []tags.Tag `json:"tags"`
}

PostResponse 追加レスポンス

type PostdRequest

type PostdRequest struct {
	UserContributionID int    `form:"userContributionId"`
	Name               string `form:"name" validate:"min=1,max=20"`
}

PostdRequest 追加リクエスト

Jump to

Keyboard shortcuts

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