29 lines
703 B
Go
29 lines
703 B
Go
package v1
|
|
|
|
import (
|
|
dto "quyun/v2/app/http/super/v1/dto"
|
|
"quyun/v2/app/requests"
|
|
"quyun/v2/app/services"
|
|
|
|
"github.com/gofiber/fiber/v3"
|
|
)
|
|
|
|
// @provider
|
|
type auditLogs struct{}
|
|
|
|
// List audit logs
|
|
//
|
|
// @Router /super/v1/audit-logs [get]
|
|
// @Summary List audit logs
|
|
// @Description List audit logs across tenants
|
|
// @Tags Audit
|
|
// @Accept json
|
|
// @Produce json
|
|
// @Param page query int false "Page number"
|
|
// @Param limit query int false "Page size"
|
|
// @Success 200 {object} requests.Pager{items=[]dto.SuperAuditLogItem}
|
|
// @Bind filter query
|
|
func (c *auditLogs) List(ctx fiber.Ctx, filter *dto.SuperAuditLogListFilter) (*requests.Pager, error) {
|
|
return services.Super.ListAuditLogs(ctx, filter)
|
|
}
|