fix schema GetIdentityFieldValuesMap interface or ptr (#6417)
Co-authored-by: uptutu <yitao.gong@vzenith.com>
This commit is contained in:
		
							parent
							
								
									2c2089760c
								
							
						
					
					
						commit
						7e44f73ad3
					
				| @ -115,6 +115,11 @@ func GetIdentityFieldValuesMap(ctx context.Context, reflectValue reflect.Value, | ||||
| 		notZero, zero bool | ||||
| 	) | ||||
| 
 | ||||
| 	if reflectValue.Kind() == reflect.Ptr || | ||||
| 		reflectValue.Kind() == reflect.Interface { | ||||
| 		reflectValue = reflectValue.Elem() | ||||
| 	} | ||||
| 
 | ||||
| 	switch reflectValue.Kind() { | ||||
| 	case reflect.Struct: | ||||
| 		results = [][]interface{}{make([]interface{}, len(fields))} | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 龚一涛
						龚一涛