Documentation
¶
Overview ¶
公共类
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RequestModel ¶
type RequestModel struct { // 模块名 ModuleName string // 功能名 MethodName string // 请求者地址 Ip string // 请求内容 Data []interface{} // 扩展请求数据 ExtensionString typeUtil.MapData // 请求的对象 Request interface{} }
请求实体对象
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:默认的错误码信息
Click to show internal directories.
Click to hide internal directories.