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 (*Handler) GetAuditLogs ¶
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
Click to show internal directories.
Click to hide internal directories.