feat: hide implement models from select

This commit is contained in:
2025-03-08 21:37:49 +07:00
parent e694fce7c7
commit fb59bf979c
6 changed files with 40 additions and 9 deletions

16
utils/is_implemented.go Normal file
View File

@@ -0,0 +1,16 @@
package utils
import (
"os"
"path/filepath"
"strings"
)
func IsEntityImplemented(entityName string) bool {
entityDirectory := filepath.Join(FindFrontendPath(), strings.ToLower(entityName))
if _, err := os.Stat(entityDirectory); os.IsNotExist(err) {
return false
} else {
return true
}
}