Go-Backend (chi, pgx, golang-migrate) + React/TS-Frontend als PWA. Enthalten: Auth inkl. OIDC, Dateien mit Versionen und Papierkorb, Freigaben (Links + intern), WebDAV, Gruppenordner, Admin/Theming, Volltextsuche mit OCR, eigener PDF-Betrachter und WOPI-Office (Collabora/OnlyOffice). Nicht im Repo: deploy/.env (Sitzungsschlüssel, DB- und Admin-Passwort) sowie alle Daten- und Build-Verzeichnisse – siehe .gitignore. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
19 lines
446 B
Go
19 lines
446 B
Go
package sharing
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type ShareLink struct {
|
|
ID uuid.UUID `json:"id"`
|
|
FileID uuid.UUID `json:"file_id"`
|
|
OwnerID uuid.UUID `json:"owner_id"`
|
|
Token string `json:"token"`
|
|
HasPassword bool `json:"has_password"`
|
|
ExpiresAt *time.Time `json:"expires_at"`
|
|
DownloadCount int `json:"download_count"`
|
|
CreatedAt time.Time `json:"created_at"`
|
|
}
|