xresponse

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

*

  • @copyright 像衍科技-idr.ai
  • @author 牛牛-研发部-www.ruomm.com
  • @create 2024/1/23 10:01
  • @version 1.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ParamError

type ParamError struct {
	Field   string `json:"field"`
	Message string `json:"message"`
}

type XResponse

type XResponse struct {
	MessageMap map[int]string
	// contains filtered or unexported fields
}

func GenXResponse

func GenXResponse(messageMap map[int]string) XResponse

func (*XResponse) ConstructResult

func (t *XResponse) ConstructResult(respCode int, datas ...interface{}) (int, string, []ParamError, interface{}, interface{})

Jump to

Keyboard shortcuts

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