mirror of
				https://github.com/beego/bee.git
				synced 2025-10-31 07:23:22 +00:00 
			
		
		
		
	修复了自定义map结构的显示
This commit is contained in:
		| @@ -1266,7 +1266,7 @@ func typeAnalyser(f *ast.Field) (isSlice bool, realType, swaggerType string) { | ||||
| 		if isBasicType(val) { | ||||
| 			return false, astTypeMap, basicTypes[val] | ||||
| 		} | ||||
| 		return false, val, astTypeObject | ||||
| 		return false, fmt.Sprintf("map[%v][%v]", t.Key, t.Value), astTypeObject | ||||
| 	case *ast.InterfaceType: | ||||
| 		return false, "interface", astTypeObject | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 wucheng
					wucheng