base

package
v0.0.0-...-701726f Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: EPL-1.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildFailByte

func BuildFailByte(code string, msg string) ([]byte, error)

Types

type ApiRequest

type ApiRequest struct {
	Cmd  string      `json:"cmd"`
	Data interface{} `json:"data"`
}

type ApiResponse

type ApiResponse struct {
	Code interface{} `json:"code"`
	Msg  interface{} `json:"msg"`
	Data interface{} `json:"data"`
}

func BuildFail

func BuildFail(code string, msg string) ApiResponse

func BuildOK

func BuildOK() ApiResponse

Jump to

Keyboard shortcuts

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