Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertOperationLog ¶
func InsertOperationLog(c *gin.Context, username, productName, method, function, detail, requestBody string, logger *zap.SugaredLogger)
InsertOperationLog 插入操作日志
func JSONResponse ¶
Types ¶
type Context ¶
type Context struct {
Logger *zap.SugaredLogger
Err error
Resp interface{}
Username string
User *permission.User
RequestID string
}
Context struct
func NewContext ¶
Click to show internal directories.
Click to hide internal directories.