mirror of
https://github.com/andwati/telecom-platform.git
synced 2026-12-04 09:28:48 +00:00
style: Format subscriber models with consistent spacing and add inactive status
- Reformat struct field alignment for improved readability - Add SubscriberStatusInactive to SubscriberStatus enum - Add blank lines after type declarations for consistency - Adjust whitespace and alignment across all model structs
This commit is contained in:
@@ -2,6 +2,7 @@ package models
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -103,14 +104,17 @@ type UsageRecord struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type SubscriberStatus string
|
type SubscriberStatus string
|
||||||
|
|
||||||
const (
|
const (
|
||||||
SubscriberStatusActive SubscriberStatus = "active"
|
SubscriberStatusActive SubscriberStatus = "active"
|
||||||
|
SubscriberStatusInactive SubscriberStatus = "inactive"
|
||||||
SubscriberStatusSuspended SubscriberStatus = "suspended"
|
SubscriberStatusSuspended SubscriberStatus = "suspended"
|
||||||
SubscriberStatusTerminated SubscriberStatus = "terminated"
|
SubscriberStatusTerminated SubscriberStatus = "terminated"
|
||||||
SubscriberStatusProvisioning SubscriberStatus = "provisioning"
|
SubscriberStatusProvisioning SubscriberStatus = "provisioning"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ProfileStatus string
|
type ProfileStatus string
|
||||||
|
|
||||||
const (
|
const (
|
||||||
ProfileStatusInactive ProfileStatus = "inactive"
|
ProfileStatusInactive ProfileStatus = "inactive"
|
||||||
ProfileStatusActive ProfileStatus = "active"
|
ProfileStatusActive ProfileStatus = "active"
|
||||||
@@ -119,6 +123,7 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type SessionStatus string
|
type SessionStatus string
|
||||||
|
|
||||||
const (
|
const (
|
||||||
SessionStatusActive SessionStatus = "active"
|
SessionStatusActive SessionStatus = "active"
|
||||||
SessionStatusInactive SessionStatus = "inactive"
|
SessionStatusInactive SessionStatus = "inactive"
|
||||||
@@ -126,6 +131,7 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type UsageType string
|
type UsageType string
|
||||||
|
|
||||||
const (
|
const (
|
||||||
UsageTypeData UsageType = "data"
|
UsageTypeData UsageType = "data"
|
||||||
UsageTypeVoice UsageType = "voice"
|
UsageTypeVoice UsageType = "voice"
|
||||||
|
|||||||
Reference in New Issue
Block a user