rainbond: github.com/goodrain/rainbond/mq/api/controller Index | Files

package controller

import "github.com/goodrain/rainbond/mq/api/controller"

Index

Package Files

controller.go

func NewFaliResponse Uses

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

NewFaliResponse 创建返回失败结构

func NewPostSuccessResponse Uses

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

NewPostSuccessResponse 创建成功返回结构

func NewSuccessMessageResponse Uses

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

NewSuccessMessageResponse 创建成功返回结构

func NewSuccessResponse Uses

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

NewSuccessResponse 创建成功返回结构

func Register Uses

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

Register 注册

type MQSource Uses

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

MQSource 消息队列接口

func (MQSource) Register Uses

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

Register 注册

type ResponseBody Uses

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 Uses

type ResponseType struct {
    Code      int          `json:"code"`
    Message   string       `json:"msg"`
    MessageCN string       `json:"msgcn"`
    Body      ResponseBody `json:"body,omitempty"`
}

ResponseType 返回内容

func NewResponseType Uses

func NewResponseType(code int, message string, messageCN string, bean interface{}, list []interface{}) ResponseType

NewResponseType 构建返回结构

Package controller imports 7 packages (graph) and is imported by 1 packages. Updated 2019-07-15. Refresh now. Tools for package owners.