controller

package
v5.2.0-release+incompa... Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2020 License: LGPL-3.0 Imports: 7 Imported by: 6

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