diff --git a/models/common/enum/size.go b/models/common/enum/size.go index a6ef1f4..939c599 100644 --- a/models/common/enum/size.go +++ b/models/common/enum/size.go @@ -22,7 +22,7 @@ func (t StorageSize) String() string { return [...]string{"GB", "MB", "KB", "TB"}[t] } -func (t StorageSize) SizeList() []StorageSize { +func SizeList() []StorageSize { return []StorageSize{GB, MB, KB, TB} } @@ -49,6 +49,6 @@ func (t StorageType) String() string { return [...]string{"FILE", "STREAM", "API", "DATABASE", "S3", "MEMORY", "HARDWARE"}[t] } -func (t StorageType) TypeList() []StorageType { +func TypeList() []StorageType { return []StorageType{FILE, STREAM, API, DATABASE, S3, MEMORY, HARDWARE} }