Documentation
¶
Overview ¶
Package sample ...
Package sample ... generated version: unknown
Package sample ...
Package sample ... generated version: unknown
Index ¶
- func Bootstrap(p *props.ControllerProps, e *echo.Echo, middlewareList MiddlewareList, ...)
- type CreatedType
- type IPostCreateTableController
- type IPostCreateUserController
- type MiddlewareList
- type MiddlewareMap
- type MiddlewareSet
- type PostCreateTableController
- type PostCreateTableRequest
- type PostCreateTableResponse
- type PostCreateUserController
- type PostCreateUserRequest
- type PostCreateUserResponse
- type Routes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bootstrap ¶
func Bootstrap(p *props.ControllerProps, e *echo.Echo, middlewareList MiddlewareList, opts ...io.Writer)
Bootstrap ...
Types ¶
type CreatedType ¶
type CreatedType int
CreatedType ...
const ( CreatedTypeOwner CreatedType = iota CreatedTypeMember CreatedTypeGuest )
CreatedType Values
type IPostCreateTableController ¶
type IPostCreateTableController interface {
PostCreateTable(c echo.Context, req *PostCreateTableRequest) (res *PostCreateTableResponse, err error)
}
IPostCreateTableController ...
type IPostCreateUserController ¶
type IPostCreateUserController interface {
PostCreateUser(c echo.Context, req *PostCreateUserRequest) (res *PostCreateUserResponse, err error)
}
IPostCreateUserController ...
type MiddlewareSet ¶
type MiddlewareSet struct {
Path string
MiddlewareFunc []echo.MiddlewareFunc
}
MiddlewareSet ...
type PostCreateTableController ¶
type PostCreateTableController struct {
*props.ControllerProps
}
PostCreateTableController ...
func NewPostCreateTableController ¶
func NewPostCreateTableController(props *props.ControllerProps) *PostCreateTableController
NewPostCreateTableController ...
func (*PostCreateTableController) PostCreateTable ¶
func (p *PostCreateTableController) PostCreateTable( c echo.Context, req *PostCreateTableRequest, ) (res *PostCreateTableResponse, err error)
PostCreateTable ... @Summary WIP @Description WIP @Accept json @Produce json @Param ID body string WIP:${isRequire} WIP:${description} @Param Text body string WIP:${isRequire} WIP:${description} @Success 200 {object} PostCreateTableResponse @Failure 400 {object} WIP @Router /create_table [POST]
type PostCreateTableRequest ¶
PostCreateTableRequest ...
type PostCreateTableResponse ¶
PostCreateTableResponse ...
type PostCreateUserController ¶
type PostCreateUserController struct {
*props.ControllerProps
}
PostCreateUserController ...
func NewPostCreateUserController ¶
func NewPostCreateUserController(props *props.ControllerProps) *PostCreateUserController
NewPostCreateUserController ...
func (*PostCreateUserController) PostCreateUser ¶
func (p *PostCreateUserController) PostCreateUser( c echo.Context, req *PostCreateUserRequest, ) (res *PostCreateUserResponse, err error)
PostCreateUser ... @Summary WIP @Description WIP @Accept json @Produce json @Param ID body string WIP:${isRequire} WIP:${description} @Param Password body string WIP:${isRequire} WIP:${description} @Param Gender body integer WIP:${isRequire} WIP:${description} @Success 200 {object} PostCreateUserResponse @Failure 400 {object} WIP @Router /create_user [POST]
type PostCreateUserRequest ¶
type PostCreateUserRequest struct {
ID string `param:"id"`
Password string
Gender int
Birthday time.Time
}
PostCreateUserRequest ...
type PostCreateUserResponse ¶
type PostCreateUserResponse struct {
Status bool
Message string
CreatedType CreatedType
RequestedAt time.Time
}
PostCreateUserResponse ...
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) PostCreateTable ¶
func (r *Routes) PostCreateTable(p *props.ControllerProps) echo.HandlerFunc
PostCreateTable ...
func (*Routes) PostCreateUser ¶
func (r *Routes) PostCreateUser(p *props.ControllerProps) echo.HandlerFunc
PostCreateUser ...
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package props is a scaffold file for props of controllers
|
Package props is a scaffold file for props of controllers |
|
Package service ...
|
Package service ... |
|
static_page
Package static ...
|
Package static ... |
|
table
Package table ...
|
Package table ... |
|
user
Package user ...
|
Package user ... |
|
user2
Package user2 ...
|
Package user2 ... |
|
user2/_userID
generated version: unknown
|
generated version: unknown |
|
user2/_userID/_JobID
generated version: unknown
|
generated version: unknown |