|
@@ -276,12 +276,11 @@ func FieldNames(s any) (FieldNamesList, error) {
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/////////////////////////////////////////////
|
|
|
|
|
|
-func OutFileds(req IRequestIn, obj any, files RequestFiles, names ...any) IRequestOut {
|
|
|
|
|
|
+func OutFields(req IRequestIn, obj any, files RequestFiles, names ...any) IRequestOut {
|
|
m, err := Fields(obj, files, names...)
|
|
m, err := Fields(obj, files, names...)
|
|
if err != nil {
|
|
if err != nil {
|
|
return req.OutError(err)
|
|
return req.OutError(err)
|
|
}
|
|
}
|
|
- log.Println("NAMES....", names)
|
|
|
|
return req.OutSuccess(m, files)
|
|
return req.OutSuccess(m, files)
|
|
}
|
|
}
|
|
|
|
|
|
@@ -289,5 +288,6 @@ func OutFieldsReq(req IRequestIn, obj any, files RequestFiles, names ...any) IRe
|
|
if len(names) == 0 {
|
|
if len(names) == 0 {
|
|
names = req.RData().Slice("fields", nil)
|
|
names = req.RData().Slice("fields", nil)
|
|
}
|
|
}
|
|
- return OutFileds(req, obj, files, names...)
|
|
|
|
|
|
+ log.Println("NAMES....", names)
|
|
|
|
+ return OutFields(req, obj, files, names...)
|
|
}
|
|
}
|