controllersContribution

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EditController

type EditController struct {
	controllers.BaseController
}

EditController 編集コントローラ

func (*EditController) Get

func (t *EditController) Get()

Get 編集する

type EditResponse

type EditResponse struct {
	contributions.Contribution
	Sound     bool `json:"sound"`
	SoundFile bool `json:"soundFile"`
}

EditResponse 編集レスポンス

type GetResponse

type GetResponse struct {
	contributions.Contribution
	FollowCount int                          `json:"followCount"`
	Following   bool                         `json:"following"`
	SoundFile   bool                         `json:"soundFile"`
	Movie       models.UserContributionMovie `json:"movie"`
}

GetResponse レスポンス

type ListController

type ListController struct {
	controllers.BaseController
}

ListController listコントローラ

func (*ListController) Get

func (c *ListController) Get()

Get 一覧を取得する

type MainController

type MainController struct {
	controllers.BaseController
}

MainController コントローラ

func (*MainController) Delete

func (c *MainController) Delete()

Delete 削除する

func (*MainController) Get

func (c *MainController) Get()

Get 投稿詳細を取得する

func (*MainController) Put

func (c *MainController) Put()

Put 保存する

type NewController

type NewController struct {
	controllers.BaseController
}

NewController Newコントローラ

func (*NewController) Post

func (c *NewController) Post()

Post 新規登録する

type NewRequest

type NewRequest struct {
	Title      string `form:"title" validate:"min=1,max=100"`
	Body       string `form:"body" validate:"min=1"`
	ViewStatus int    `form:"viewStatus"`
	Tag        string `form:"tag"`
}

NewRequest 新規リクエスト

type PutRequest

type PutRequest struct {
	Title      string `form:"title" validate:"min=1,max=100"`
	Body       string `form:"body" validate:"min=1"`
	ViewStatus int    `form:"viewStatus"`
}

PutRequest PUTリクエスト

type SearchController

type SearchController struct {
	controllers.BaseController
}

SearchController 検索コントローラ

func (*SearchController) Post

func (c *SearchController) Post()

Post 検索を取得を取得する

type SearchRequest

type SearchRequest struct {
	Search string `form:"search"`
	Order  int    `form:"order" validate:"min=1,max=2"`
	Page   int    `form:"page"`
	Limit  int    `form:"limit" validate:"min=1,max=50"`
}

SearchRequest 検索リクエスト

type SearchResponse

type SearchResponse struct {
	List  []contributions.Contribution `json:"list"`
	Count int                          `json:"count"`
}

SearchResponse 検索レスポンス

type UploadController

type UploadController struct {
	controllers.BaseController
}

UploadController アップロードコントローラ

func (*UploadController) Post

func (c *UploadController) Post()

Post 画像アップロード

type UploadRequest

type UploadRequest struct {
	ID int `form:"id"`
}

UploadRequest アップロードリクエスト

type UploadResponse

type UploadResponse struct {
	Warning bool   `json:"warning"`
	Message string `json:"message"`
	Path    string `json:"path"`
}

UploadResponse アップロードレスポンス

Jump to

Keyboard shortcuts

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