Documentation ¶ Index ¶ type Pager type PagerResponse type Response func (r *Response) SetCode(code int) *Response func (r *Response) SetSuccess(success bool) *Response Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Pager ¶ type Pager struct { TotalPage int `json:"totalPage"` // 总页数 PageSize int `json:"pageSize"` // 页面大小 PageNum int `json:"pageNum"` // 页号 More int `json:"more"` // 是否有下一页 Data []interface{} `json:"items,omitempty"` } type PagerResponse ¶ type PagerResponse struct { Response Pager } type Response ¶ type Response struct { Code *int `json:"code,omitempty"` Success *bool `json:"success,omitempty"` Message string `json:"message,omitempty"` } func (*Response) SetCode ¶ func (r *Response) SetCode(code int) *Response func (*Response) SetSuccess ¶ func (r *Response) SetSuccess(success bool) *Response Source Files ¶ View all Source files response.go Click to show internal directories. Click to hide internal directories.