feat: add audit logs and system configs
This commit is contained in:
28
backend/app/http/super/v1/audit_logs.go
Normal file
28
backend/app/http/super/v1/audit_logs.go
Normal file
@@ -0,0 +1,28 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user