api

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(c *gin.Context)

func GetRedirectUrl

func GetRedirectUrl() string

func ParamsCheck

func ParamsCheck(c *gin.Context, v interface{}) error

func RespFmt

func RespFmt(c *gin.Context, code int, resp *Resp)

Types

type Resp

type Resp struct {
	Error    int         `json:"error" example:"0"`
	Msg      string      `json:"msg" example:"ok"`
	Redirect string      `json:"redirect" example:" "`
	Data     interface{} `json:"data,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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