23 lines
547 B
Go
23 lines
547 B
Go
package dto
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type Data struct {
|
|
SourceID int `json:"source_id"`
|
|
SourceName string `json:"source_name"`
|
|
ExpiresAt time.Time `json:"expires_at"`
|
|
Headers map[string]string `json:"headers"`
|
|
URL string `json:"url"`
|
|
}
|
|
|
|
type Response struct {
|
|
Status int `json:"status"`
|
|
Success bool `json:"success"`
|
|
Message string `json:"message"`
|
|
Data Data `json:"data"`
|
|
TraceID string `json:"trace_id"`
|
|
Timestamp time.Time `json:"timestamp"`
|
|
}
|