controller

package
v0.0.0-...-a3a5c94 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFaliResponse

func NewFaliResponse(code int, message string, messageCN string, response *restful.Response)

NewFaliResponse

func NewPostSuccessResponse

func NewPostSuccessResponse(bean interface{}, list []interface{}, response *restful.Response)

NewPostSuccessResponse

func NewSuccessMessageResponse

func NewSuccessMessageResponse(bean interface{}, list []interface{}, message, messageCN string, response *restful.Response)

NewSuccessMessageResponse

func NewSuccessResponse

func NewSuccessResponse(bean interface{}, list []interface{}, response *restful.Response)

NewSuccessResponse

func Register

func Register(container *restful.Container, mq mq.ActionMQ)

Register

Types

type MQSource

type MQSource struct {
	// contains filtered or unexported fields
}

MQSource

func (MQSource) Register

func (u MQSource) Register(container *restful.Container)

Register

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL