transfer

package
v0.0.0-...-dbc8191 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	Code    string `json:"code"`
	Message string `json:"message"`
}

base transfer

type CustomError

type CustomError struct {
	Base
}

error transfer

func NewCustomError

func NewCustomError(code string) *CustomError

func NewCustomErrorMsg

func NewCustomErrorMsg(code string, msg string) *CustomError

func (*CustomError) Error

func (e *CustomError) Error() string

method of error transfer

type Success

type Success struct {
	Base
	Data interface{} `json:"data"`
}

success transfer

func NewSuccess

func NewSuccess(data interface{}) *Success

Jump to

Keyboard shortcuts

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