Documentation

Overview

Package static ... generated version: devel

Package static ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetStaticPageController

type GetStaticPageController struct {
	*props.ControllerProps
}

GetStaticPageController ...

func NewGetStaticPageController

func NewGetStaticPageController(cp *props.ControllerProps) *GetStaticPageController

NewGetStaticPageController ...

func (*GetStaticPageController) GetStaticPage

func (g *GetStaticPageController) GetStaticPage(
	c echo.Context, req *GetStaticPageRequest,
) (res *GetStaticPageResponse, err error)

GetStaticPage ... @Summary WIP @Description WIP @Accept json @Produce json @Success 200 {object} GetStaticPageResponse @Failure 400 {object} wrapper.APIError @Failure 500 {object} wrapper.APIError @Router /service/static_page/static_page [GET]

type GetStaticPageRequest

type GetStaticPageRequest struct{}

GetStaticPageRequest ...

type GetStaticPageResponse

type GetStaticPageResponse struct {
	Title string `json:"title"`
	Body  string `json:"body"`
}

GetStaticPageResponse ...

type IGetStaticPageController

type IGetStaticPageController interface {
	GetStaticPage(c echo.Context, req *GetStaticPageRequest) (res *GetStaticPageResponse, err error)
}

IGetStaticPageController ...

type Routes

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

Routes ...

func NewRoutes

func NewRoutes(p *props.ControllerProps, router *echo.Group, opts ...io.Writer) *Routes

NewRoutes ...

func (*Routes) GetStaticPage

func (r *Routes) GetStaticPage(p *props.ControllerProps) echo.HandlerFunc

GetStaticPage ...