0x4a52466c696e74 1 month ago
parent
commit
06c78241e2
1 changed files with 4 additions and 0 deletions
  1. 4 0
      rest_gorm/request_list.go

+ 4 - 0
rest_gorm/request_list.go

@@ -92,6 +92,10 @@ func toAnySlice(slice any) []any {
 	v := reflect.ValueOf(slice)
 	log.Println("kk", v.Kind())
 
+	if v.Kind() == reflect.Ptr {
+		v = v.Elem()
+	}
+
 	// Check if the input is a slice
 	if v.Kind() != reflect.Slice {
 		return nil