common

package
v0.0.0-...-d893abf Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2017 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Overview

公共类

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsTest

func IsTest() bool

是否处于测试状态

func SetIsTest

func SetIsTest(_isTest bool)

设置是否处于测试状态 _isTest:是否处于测试状态

Types

type RequestModel

type RequestModel struct {

	// 模块名
	ModuleName string

	// 功能名
	MethodName string

	// 请求者地址
	Ip string

	// 请求内容
	Data []interface{}

	// 扩展请求数据
	ExtensionString typeUtil.MapData

	// 请求的对象
	Request interface{}
}

请求实体对象

func NewRequestModel

func NewRequestModel() *RequestModel

创建新的请求对象

type ResultModel

type ResultModel struct {
	// 状态
	errorCode.ErrorInfo

	// 数据
	Value map[string]interface{}

	// 附加数据
	Avatar map[string]interface{}
}

请求结果实体对象

func NewResultModel

func NewResultModel(defaultErrorCode errorCode.ErrorCode) (result *ResultModel)

创建新的实体对象 defaultErrorCode:默认的错误码信息

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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