Backend: Change alias name for map[string]interface{} from Value to Map

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2024-01-20 15:01:40 +01:00
parent 01da5bdec7
commit db9b33ddea
23 changed files with 61 additions and 61 deletions

View File

@@ -5,11 +5,11 @@ import (
"reflect"
)
// Values is a shortcut for map[string]interface{}
type Values map[string]interface{}
// Map is an alias for map[string]interface{}.
type Map map[string]interface{}
// ModelValues extracts Values from an entity model.
func ModelValues(m interface{}, omit ...string) (result Values, omitted []interface{}, err error) {
func ModelValues(m interface{}, omit ...string) (result Map, omitted []interface{}, err error) {
mustOmit := func(name string) bool {
for _, s := range omit {
if name == s {