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, permissionUUID string, requestBody string, logger *zap.SugaredLogger)
插入操作日志
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.