Documentation ¶
Index ¶
- func AccountID(ctx *gin.Context) uint
- func BadRequest(ctx *gin.Context, msgs ...interface{})
- func BadRequestWithCode(ctx *gin.Context, code int, msgs ...interface{})
- func CompanyID(ctx *gin.Context) uint
- func CustomerID(ctx *gin.Context) uint
- func EmployeeID(ctx *gin.Context) uint
- func GetRealIP(req *http.Request) string
- func InternalError(ctx *gin.Context, msgs ...interface{})
- func InternalErrorWithCode(ctx *gin.Context, code int, msgs ...interface{})
- func Logger(ctx *gin.Context) *zap.SugaredLogger
- func LoginStatus(ctx *gin.Context) *auth.LoginStatus
- func RequestID(ctx *gin.Context) string
- func ResponseMessage(ctx *gin.Context, msgCode uint32, msg string)
- func Success(ctx *gin.Context, msgs ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BadRequestWithCode ¶
BadRequestWithCode 参数错误
func InternalError ¶
InternalError 服务器内部错误
func InternalErrorWithCode ¶
InternalErrorWithCode 服务器内部错误
func ResponseMessage ¶
ResponseMessage 返回消息
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.