mirror of
https://github.com/andwati/telecom-platform.git
synced 2026-10-22 12:44:29 +00:00
feat: Reorder OnboardingProgress and OnboardingStep structs and add MVNOFilter type
- Move OnboardingProgress struct definition before OnboardingStep for logical ordering - Add MVNOFilter struct with status, plan, business_id, limit, offset, and date range filtering fields
This commit is contained in:
@@ -59,14 +59,6 @@ type OnboardingRequest struct {
|
||||
TechnicalContact string `json:"technical_contact"`
|
||||
}
|
||||
|
||||
// OnboardingStep represents individual onboarding steps
|
||||
type OnboardingStep struct {
|
||||
Name string `json:"name"`
|
||||
Status string `json:"status"`
|
||||
CompletedAt time.Time `json:"completed_at"`
|
||||
Error string `json:"error,omitempty"`
|
||||
}
|
||||
|
||||
// OnboardingProgress tracks the onboarding progress
|
||||
type OnboardingProgress struct {
|
||||
MVNOID string `json:"mvno_id"`
|
||||
@@ -75,3 +67,22 @@ type OnboardingProgress struct {
|
||||
StartedAt time.Time `json:"started_at"`
|
||||
CompletedAt time.Time `json:"completed_at"`
|
||||
}
|
||||
|
||||
// OnboardingStep represents individual onboarding steps
|
||||
type OnboardingStep struct {
|
||||
Name string `json:"name"`
|
||||
Status string `json:"status"`
|
||||
CompletedAt time.Time `json:"completed_at"`
|
||||
Error string `json:"error,omitempty"`
|
||||
}
|
||||
|
||||
// MVNOFilter defines filtering options for MVNO queries
|
||||
type MVNOFilter struct {
|
||||
Status MVNOStatus `json:"status,omitempty"`
|
||||
Plan MVNOPlan `json:"plan,omitempty"`
|
||||
BusinessID string `json:"business_id,omitempty"`
|
||||
Limit int `json:"limit,omitempty"`
|
||||
Offset int `json:"offset,omitempty"`
|
||||
CreatedAfter *time.Time `json:"created_after,omitempty"`
|
||||
CreatedBefore *time.Time `json:"created_before,omitempty"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user