handler

package
v0.0.0-...-60c035c Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewModelHandler

func NewModelHandler(r *gin.RouterGroup, u usecase.ModelUsecase)

NewModelHandler ModelHandlerを作成します

Types

type ModelHandler

type ModelHandler struct {
	// contains filtered or unexported fields
}

ModelHandler ModelAPIに対するリクエストハンドラ

func (*ModelHandler) Create

func (h *ModelHandler) Create(c *gin.Context)

Create Modelを作成します

func (*ModelHandler) Delete

func (h *ModelHandler) Delete(c *gin.Context)

Delete Modelを削除します

func (*ModelHandler) GetAll

func (h *ModelHandler) GetAll(c *gin.Context)

GetAll 複数のModelを取得します

func (*ModelHandler) GetByAPIID

func (h *ModelHandler) GetByAPIID(c *gin.Context)

GetByAPIID APIIDからModelを1件取得します

func (*ModelHandler) GetByID

func (h *ModelHandler) GetByID(c *gin.Context)

GetByID Modelを1件取得します

func (*ModelHandler) Update

func (h *ModelHandler) Update(c *gin.Context)

Update Modelを更新します

Jump to

Keyboard shortcuts

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