Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRoutes ¶
func RegisterRoutes(protected *gin.RouterGroup, deps *core.ServerDependencies)
Types ¶
type DeleteHistoryBulkResponse ¶
type DeleteHistoryBulkResponse struct {
Deleted int64 `json:"deleted"`
}
DeleteHistoryBulkResponse is the response for bulk deletion
type ErrorResponse ¶
type ErrorResponse = contracts.ErrorResponse
type HistoryListResponse ¶
type HistoryListResponse struct {
Records []HistoryRecord `json:"records"`
Total int64 `json:"total"`
Limit int `json:"limit"`
Offset int `json:"offset"`
}
HistoryListResponse is the response for listing history records
type HistoryRecord ¶
type HistoryRecord struct {
ID uint `json:"id"`
MovieID string `json:"movie_id"`
Operation string `json:"operation"`
OriginalPath string `json:"original_path"`
NewPath string `json:"new_path"`
Status string `json:"status"`
ErrorMessage string `json:"error_message"`
Metadata string `json:"metadata"`
DryRun bool `json:"dry_run"`
CreatedAt string `json:"created_at"`
}
HistoryRecord represents a single history record in API responses
Click to show internal directories.
Click to hide internal directories.