mirror of
				https://github.com/beego/bee.git
				synced 2025-10-31 12:33:21 +00:00 
			
		
		
		
	support interface type
This commit is contained in:
		| @@ -1260,6 +1260,8 @@ func typeAnalyser(f *ast.Field) (isSlice bool, realType, swaggerType string) { | ||||
| 			return false, astTypeMap, basicTypes[val] | ||||
| 		} | ||||
| 		return false, val, astTypeObject | ||||
| 	case *ast.InterfaceType: | ||||
| 		return false, "interface", astTypeObject | ||||
| 	} | ||||
| 	basicType := fmt.Sprint(f.Type) | ||||
| 	if object, isStdLibObject := stdlibObject[basicType]; isStdLibObject { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 wucheng
					wucheng