model

package
v0.0.100 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OptionalNumber

type OptionalNumber string

func (OptionalNumber) Int64

func (c OptionalNumber) Int64() (int64, error)

func (*OptionalNumber) UnmarshalJSON

func (c *OptionalNumber) UnmarshalJSON(data []byte) error

type Resp

type Resp struct {
	Code int         `json:"code"`
	Msg  string      `json:"msg,omitempty"`
	Data interface{} `json:"data"`
}

func NewErrResp

func NewErrResp(err error) *Resp

func NewResp

func NewResp(data interface{}) *Resp

func NewSuccessResp

func NewSuccessResp() *Resp

Jump to

Keyboard shortcuts

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