Files
ai-customer-service/internal/http/handlers/audit_helper.go

18 lines
306 B
Go

package handlers
import (
"context"
"time"
"github.com/bridge/ai-customer-service/internal/domain/audit"
"github.com/google/uuid"
)
type AuditRecorder interface {
Add(ctx context.Context, event audit.Event) error
}
func newAuditID(prefix string, now time.Time) string {
return uuid.NewString()
}