runtime

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccountID

func AccountID(ctx *gin.Context) uint

AccountID 账户ID

func BadRequest

func BadRequest(ctx *gin.Context, msgs ...interface{})

BadRequest 参数错误

func BadRequestWithCode

func BadRequestWithCode(ctx *gin.Context, code int, msgs ...interface{})

BadRequestWithCode 参数错误

func CompanyID

func CompanyID(ctx *gin.Context) uint

CompanyID 企业ID

func CustomerID

func CustomerID(ctx *gin.Context) uint

CustomerID 客户ID

func EmployeeID

func EmployeeID(ctx *gin.Context) uint

EmployeeID 员工ID

func GetRealIP

func GetRealIP(req *http.Request) string

GetRealIP 平台

func InternalError

func InternalError(ctx *gin.Context, msgs ...interface{})

InternalError 服务器内部错误

func InternalErrorWithCode

func InternalErrorWithCode(ctx *gin.Context, code int, msgs ...interface{})

InternalErrorWithCode 服务器内部错误

func Logger

func Logger(ctx *gin.Context) *zap.SugaredLogger

Logger 日志

func LoginStatus

func LoginStatus(ctx *gin.Context) *auth.LoginStatus

LoginStatus 登录状态

func RequestID

func RequestID(ctx *gin.Context) string

RequestID 请求ID

func ResponseMessage

func ResponseMessage(ctx *gin.Context, msgCode uint32, msg string)

ResponseMessage 返回消息

func Success

func Success(ctx *gin.Context, msgs ...interface{})

Success 成功

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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