auditloghandler

package
v1.23.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ModelName      = "AuditLog"
	SearchFields   = []string{"username", "module", "name"}
	FilterFields   = []string{"Username", "Tenant", "Action", "Success", "CreatedAt_gte", "CreatedAt_lte"}
	PrimaryKeyName = "auditlog_id"
	OrderFields    = []string{"CreatedAt"}
)

Functions

This section is empty.

Types

type AuditLogHandler

type AuditLogHandler struct {
	base.BaseHandler
}

func (*AuditLogHandler) ListAuditLog

func (h *AuditLogHandler) ListAuditLog(c *gin.Context)

ListAuditLog 列表 AuditLog @Tags AuditLog @Summary AuditLog列表 @Description AuditLog列表 @Accept json @Produce json @Param Username query string false "Username" @Param Tenant query string false "Tenant" @Param Action query string false "Action" @Param Success query string false "Success" @Param CreatedAt_gte query string false "CreatedAt_gte" @Param CreatedAt_lte query string false "CreatedAt_lte" @Param page query int false "page" @Param size query int false "page" @Param search query string false "search in (username,module,name)" @Success 200 {object} handlers.ResponseStruct{Data=handlers.PageData{List=[]models.AuditLog}} "AuditLog" @Router /v1/auditlog [get] @Security JWT

func (*AuditLogHandler) RegistRouter

func (h *AuditLogHandler) RegistRouter(rg *gin.RouterGroup)

func (*AuditLogHandler) RetrieveAuditLog

func (h *AuditLogHandler) RetrieveAuditLog(c *gin.Context)

RetrieveAuditLog AuditLog详情 @Tags AuditLog @Summary AuditLog详情 @Description get AuditLog详情 @Accept json @Produce json @Param auditlog_id path uint true "auditlog_id" @Success 200 {object} handlers.ResponseStruct{Data=models.AuditLog} "AuditLog" @Router /v1/auditlog/{auditlog_id} [get] @Security JWT

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL