http

package
v0.0.0-...-e248b5d Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(userSvc user.Servicer) *handler

NewHandler http server 控制物件

func SetRoutes

func SetRoutes(e *echo.Echo, h *handler)

Types

type UserReq

type UserReq struct {
	user.User
}

UserReq 新增 User

type UserResp

type UserResp struct {
	Data user.User `json:"data"`
}

UserResp 取得 User

type UsersReq

type UsersReq struct {
	user.FindUserOptions
}

UsersReq 搜尋 Users 選項

type UsersResp

type UsersResp struct {
	Data []user.User `json:"data"`
}

UsersResp 取得 Users

Jump to

Keyboard shortcuts

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