Documentation ¶
Index ¶
- func NewFaliResponse(code int, message string, messageCN string, response *restful.Response)
- func NewPostSuccessResponse(bean interface{}, list []interface{}, response *restful.Response)
- func NewSuccessMessageResponse(bean interface{}, list []interface{}, message, messageCN string, ...)
- func NewSuccessResponse(bean interface{}, list []interface{}, response *restful.Response)
- func Register(container *restful.Container, mq mq.ActionMQ)
- type MQSource
- type ResponseBody
- type ResponseType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFaliResponse ¶
NewFaliResponse
func NewPostSuccessResponse ¶
NewPostSuccessResponse
func NewSuccessMessageResponse ¶
func NewSuccessMessageResponse(bean interface{}, list []interface{}, message, messageCN string, response *restful.Response)
NewSuccessMessageResponse
func NewSuccessResponse ¶
NewSuccessResponse
Types ¶
type ResponseBody ¶
type ResponseBody struct { Bean interface{} `json:"bean,omitempty"` List []interface{} `json:"list,omitempty"` PageNum int `json:"pageNumber,omitempty"` PageSize int `json:"pageSize,omitempty"` Total int `json:"total,omitempty"` }
ResponseBody
type ResponseType ¶
type ResponseType struct { Code int `json:"code"` Message string `json:"msg"` MessageCN string `json:"msgcn"` Body ResponseBody `json:"body,omitempty"` }
ResponseType
func NewResponseType ¶
func NewResponseType(code int, message string, messageCN string, bean interface{}, list []interface{}) ResponseType
NewResponseType
Click to show internal directories.
Click to hide internal directories.