app

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	C *gin.Context
	M interface{}
}

func NewApp

func NewApp(c *gin.Context) *App

func (*App) Bind

func (a *App) Bind(v interface{}) error

func (*App) Error

func (a *App) Error(err error)

返回错误

func (*App) LoginError

func (a *App) LoginError(err error)

登陆失败

func (*App) SUCCESS

func (a *App) SUCCESS(data interface{})

返回成功

type Response

type Response struct {
	Code      int         `json:"code"`
	Message   string      `json:"message"`
	Result    interface{} `json:"result"`
	Success   bool        `json:"success"`
	Timestamp int64       `json:"timestamp"`
}

Jump to

Keyboard shortcuts

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