Documentation
¶
Index ¶
- Variables
- func DelSession(sId string)
- func GetOperateUser(c *gin.Context) string
- func GetSessionData(sId string) m.Session
- func InitLocalSession()
- func InitMonitorLog()
- func IsActive(sId string) bool
- func IsIllegalName(str string) bool
- func LogError(s string, e error)
- func LogInfo(s string)
- func Return(c *gin.Context, j RespJson)
- func ReturnData(c *gin.Context, data interface{})
- func ReturnError(c *gin.Context, msg string, err error)
- func ReturnSuccess(c *gin.Context, msg string)
- func ReturnValidateFail(c *gin.Context, msg string)
- func SaveSession(session m.Session) (isOk bool, sId string)
- func ValidateGet(c *gin.Context)
- func ValidatePost(c *gin.Context, obj interface{}, ex ...string) bool
- type RespJson
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LogHttp *zap.Logger //LogCron *zap.Logger HttpLogEnable bool )
View Source
var LocalMem map[string]m.Session
var RedisClient *redis.Client
Functions ¶
func DelSession ¶
func DelSession(sId string)
func GetOperateUser ¶
func GetSessionData ¶
func InitLocalSession ¶
func InitLocalSession()
func InitMonitorLog ¶
func InitMonitorLog()
func IsIllegalName ¶
func ReturnData ¶
func ReturnSuccess ¶
func ReturnValidateFail ¶
func ValidateGet ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.