mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
- Updated multiple controller methods to return VoidResponse instead of generic Response[any]. - Consolidated error handling to utilize GetErrorVoidResponse for consistent error responses. - Enhanced parameter handling in export and file management functions for improved clarity and maintainability. - Refactored health check and login/logout methods to align with new response structure. - Improved overall consistency in response formatting across various endpoints.
18 lines
267 B
Go
18 lines
267 B
Go
package interfaces
|
|
|
|
import (
|
|
"go.mongodb.org/mongo-driver/bson"
|
|
"time"
|
|
)
|
|
|
|
type Export interface {
|
|
GetId() string
|
|
GetType() string
|
|
GetTarget() string
|
|
GetQuery() bson.M
|
|
GetStatus() string
|
|
GetStartTs() time.Time
|
|
GetEndTs() time.Time
|
|
GetDownloadPath() string
|
|
}
|