Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetResourcesInHeader ¶ added in v1.7.1
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{}
Account string
UserName string
UserID string
IdentityType string
RequestID string
}
Context struct
func NewContext ¶
TODO: We need to implement a `context.Context` that conforms to the golang standard library.
type FederatedClaims ¶ added in v1.9.9
Click to show internal directories.
Click to hide internal directories.