app

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

* * @Author: TheLife * @Date: 2020-2-25 9:00 下午

* * @Author: TheLife * @Date: 2020-2-25 9:00 下午

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAppCurrentPath

func GetAppCurrentPath() (string, error)

获取应用的运行目录

func HandleError

func HandleError(c *gin.Context, err error) bool

func HandleErrorData

func HandleErrorData(c *gin.Context, data interface{}, err error) bool

func JsonData

func JsonData(c *gin.Context, data interface{})

func JsonError

func JsonError(c *gin.Context, msg string)

func JsonErrorData

func JsonErrorData(c *gin.Context, data interface{}, msg string)

func JsonPagination

func JsonPagination(c *gin.Context, list interface{}, page pagination.Page)

func JsonSuccess

func JsonSuccess(c *gin.Context)

func ParseParamID

func ParseParamID(c *gin.Context) (uint, error)

func ParseParamIDString

func ParseParamIDString(c *gin.Context) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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