Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Routes = map[myrouter.RouteKey]func(w http.ResponseWriter, r *http.Request, ps common.QueryMap){ {Path: "/api/v2/users/:user_id", Method: http.MethodGet, NeedAuth: false}: hf.Find, {Path: "/api/v2/users", Method: http.MethodPost, NeedAuth: false}: hc.Create, }
Functions ¶
This section is empty.
Types ¶
type PostRequest ¶
type PostResponse ¶
type PostResponse struct { *myhttp.ResponseBase User User `json:"user"` }
func NewResponse ¶
func NewResponse(res *myhttp.ResponseBase, user d.User) *PostResponse
type SimpleResponse ¶
type SimpleResponse struct {
*myhttp.ResponseBase
}
func NewSimpleResponse ¶
func NewSimpleResponse(res *myhttp.ResponseBase) *SimpleResponse
Click to show internal directories.
Click to hide internal directories.