0x4a52466c696e74 1 week 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)
 	v := reflect.ValueOf(slice)
 	log.Println("kk", v.Kind())
 	log.Println("kk", v.Kind())
 
 
+	if v.Kind() == reflect.Ptr {
+		v = v.Elem()
+	}
+
 	// Check if the input is a slice
 	// Check if the input is a slice
 	if v.Kind() != reflect.Slice {
 	if v.Kind() != reflect.Slice {
 		return nil
 		return nil