- PostgreSQL metadata overlay layer on top of existing S3 storage - 3 new tables: folders, files, share_links - Folder CRUD: create, get with children, tree, rename, delete (cascade) - File operations: upload to folder, move between folders - Share links: create with optional password/expiry/download limit, public access - S3 compensation on PG write failure - Existing 14 endpoints untouched
15 lines
269 B
Go
15 lines
269 B
Go
package requests
|
|
|
|
type CreateFolderRequest struct {
|
|
Name string `json:"name"`
|
|
ParentID *string `json:"parent_id"`
|
|
}
|
|
|
|
type RenameFolderRequest struct {
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
type MoveFileRequest struct {
|
|
TargetFolderID string `json:"target_folder_id"`
|
|
}
|