Documentation ¶
Index ¶
- Constants
- func ComLogNotice(c *gin.Context, dltag string, m map[string]interface{})
- func ComLogWarning(c *gin.Context, dltag string, m map[string]interface{})
- func ContextError(c context.Context, dltag string, m map[string]interface{})
- func ContextNotice(c context.Context, dltag string, m map[string]interface{})
- func ContextWarning(c context.Context, dltag string, m map[string]interface{})
- func DefaultGetValidParams(c *gin.Context, params interface{}) error
- func GenSaltPassword(salt, password string) string
- func GetGinTraceContext(c *gin.Context) *lib.TraceContext
- func GetTraceContext(c context.Context) *lib.TraceContext
- func GetTranslation(c *gin.Context) (ut.Translator, error)
- func GetValidator(c *gin.Context) (*validator.Validate, error)
Constants ¶
View Source
const ( ValidatorKey = "ValidatorKey" TranslatorKey = "TranslatorKey" AdminSessionInfoKey = "AdminSessionInfoKey" )
Variables ¶
This section is empty.
Functions ¶
func ComLogWarning ¶
错误日志
func ContextError ¶
错误日志
func ContextNotice ¶
普通日志
func ContextWarning ¶
错误日志
func DefaultGetValidParams ¶
func GenSaltPassword ¶
func GetGinTraceContext ¶
func GetGinTraceContext(c *gin.Context) *lib.TraceContext
从gin的Context中获取数据
func GetTranslation ¶
func GetValidator ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.