Documentation ¶
Index ¶
- type Response
- func (r *Response) Accepted(args ...any) services.Response
- func (r *Response) Created(args ...any) services.Response
- func (r *Response) Get(field string) (any, error)
- func (r *Response) New(code int, args ...any) services.Response
- func (r *Response) NoContent(args ...any) services.Response
- func (r *Response) NonAuthoritative(args ...any) services.Response
- func (r *Response) Ok(args ...any) services.Response
- func (r *Response) ResetContent(args ...any) services.Response
- func (r *Response) Set(arg any) services.Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Response ¶
type Response struct { *response.Service `json:"-"` Code int `json:"code"` Msg string `json:"msg"` Data any `json:"data"` Token string `json:"token"` }
Response 非 HTML 请求的成功响应体
func (*Response) NonAuthoritative ¶
NonAuthoritative 203 非权威的第三方数据
func (*Response) ResetContent ¶
ResetContent 205 成功处理请求, 但需要客户端重置页面上的表单.
Click to show internal directories.
Click to hide internal directories.