From a4a249bab828dea2750212e6b9b8d9b84c072e82 Mon Sep 17 00:00:00 2001 From: mr Date: Thu, 16 Jan 2025 15:25:44 +0100 Subject: [PATCH] light modification --- models/common/enum/size.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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} }