audit

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditRequest

type AuditRequest struct {
	Page     int    `form:"page" json:"page"`         // 页码
	PageSize int    `form:"pageSize" json:"pageSize"` // 每页数量
	Size     int    `form:"size" json:"size"`         // 每页数量别名(兼容前端)
	Action   string `form:"action" json:"action"`     // 操作类型过滤
	UserID   string `form:"userId" json:"userId"`     // 用户ID过滤
}

AuditRequest audit log request

type AuditResponse

type AuditResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

AuditResponse audit log response

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(service *Service) *Handler

func (*Handler) GetAuditLogs

func (h *Handler) GetAuditLogs(c *gin.Context)

GetAuditLogs retrieves audit logs with filtering and pagination Supports both GET (query params) and POST (JSON body) requests

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(svcCtx *svc.ServiceContext) *Service

func (*Service) GetAuditLogs

func (s *Service) GetAuditLogs(ctx context.Context, req *AuditRequest) (*AuditResponse, error)

GetAuditLogs retrieves audit logs with filtering and pagination

Jump to

Keyboard shortcuts

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