Documentation
¶
Index ¶
- 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 GenSaltPwd(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)
- func MD5(text string) (string, error)
- func Obj2Json(obj interface{}) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComLogWarning ¶
错误日志
func ContextError ¶
错误日志
func ContextNotice ¶
普通日志
func ContextWarning ¶
错误日志
func DefaultGetValidParams ¶
func GenSaltPwd ¶
func GetGinTraceContext ¶
func GetGinTraceContext(c *gin.Context) *lib.TraceContext
从gin的Context中获取数据
func GetTranslation ¶
func GetTranslation(c *gin.Context) (ut.Translator, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.