瀏覽代碼

in progress

0x4a52466c696e74 4 月之前
父節點
當前提交
64431c53c4
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      fielder.go

+ 3 - 3
fielder.go

@@ -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...)
 	if err != nil {
 		return req.OutError(err)
 	}
-	log.Println("NAMES....", names)
 	return req.OutSuccess(m, files)
 }
 
@@ -289,5 +288,6 @@ func OutFieldsReq(req IRequestIn, obj any, files RequestFiles, names ...any) IRe
 	if len(names) == 0 {
 		names = req.RData().Slice("fields", nil)
 	}
-	return OutFileds(req, obj, files, names...)
+	log.Println("NAMES....", names)
+	return OutFields(req, obj, files, names...)
 }