web

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result struct {
	State bool `json:"state"`

	Message string `json:"message,omitempty"`

	Data interface{} `json:"data,omitempty"`
}

func Error

func Error(message string) *Result

Error 返回错误

func NewResult

func NewResult(state bool, message string, data interface{}) *Result

func Success

func Success(data interface{}) *Result

Success 返回成功

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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