Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
func NewAutoMehtodName ¶
func NewAutoMehtodName(ctx context.Context, w http.ResponseWriter) *Response
create response
func (*Response) SendJsonHttpReplyError ¶
send err data
func (*Response) SendJsonHttpReplySuccess ¶
func (gr *Response) SendJsonHttpReplySuccess(data interface{})
send json data with success code
func (*Response) SetHttpStatus ¶
default status is 200
Click to show internal directories.
Click to hide internal directories.