types

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: Apache-2.0 Imports: 3 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 {
	Code    int    `json:"code"`
	Msg     string `json:"msg"`
	Data    any    `json:"data"`
	ErrCode int    `json:"errCode"`
	Service string `json:"service"`
}

func (*Result) Error

func (res *Result) Error(errCode int, msg string, data any)

func (*Result) JsonMarshal

func (res *Result) JsonMarshal() (marshal []byte)

type WsResult

type WsResult struct {
	Result
	Path string `json:"path"`
	Mark string `json:"mark"`
}

Jump to

Keyboard shortcuts

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