controllersUser

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContributionListController

type ContributionListController struct {
	controllers.BaseController
}

ContributionListController 投稿リストコントローラー

func (*ContributionListController) Post

func (c *ContributionListController) Post()

Post ユーザー投稿一覧を取得する

type ContributionListRequest

type ContributionListRequest struct {
	Order int `form:"order"`
	Page  int `form:"page"`
	Limit int `form:"limit"`
}

ContributionListRequest 投稿リストリクエスト

type ContributionListResponse

type ContributionListResponse struct {
	PrivteList []models.UserContribution `json:"privtes"`
	List       []models.UserContribution `json:"list"`
	TitleList  []string                  `json:"titles"`
	Count      int                       `json:"count"`
}

ContributionListResponse 投稿リストレスポンス

type GetResponse

type GetResponse struct {
	User    user.User      `json:"user"`
	Profile []user.Profile `json:"profiles"`
}

GetResponse 詳細レスポンス

type MainController

type MainController struct {
	controllers.BaseController
}

MainController コントローラー

func (*MainController) Get

func (c *MainController) Get()

Get ユーザー情報

func (*MainController) Put

func (c *MainController) Put()

Put ユーザー情報

type PutRequest

type PutRequest struct {
	Name string `form:"name" validate:"min=1,max=100"`
}

PutRequest 保存リクエスト

type PutResponse

type PutResponse struct {
	Success bool `json:"success"`
}

PutResponse 保存レスポンス

Jump to

Keyboard shortcuts

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