type.addTypeArgument(FullyQualifiedJavaType.getObjectInstance());
importedTypes.add(type);
FullyQualifiedJavaType returnType = new FullyQualifiedJavaType("com.eatle.utils.Pagination");
importedTypes.add(returnType);
Method method = new Method();
method.setReturnType(returnType);
method.setVisibility(JavaVisibility.PUBLIC);
method.setName("findPagination");
method.addParameter(new Parameter(type, "queryMap"));
method.addParameter(new Parameter(FullyQualifiedJavaType
.getIntInstance(), "currentPage"));// int currentPage
method.addParameter(new Parameter(FullyQualifiedJavaType
.getIntInstance(), "pageSize"));// int pageSize
method.addJavaDocLine("/**\n" + "* @Description:\n" + "* @param queryMap 查询参数\n"
+ "* @param currentPage 当前页\n" + "* @param pageSize 每页大小\n" + "*/");
interfaze.addImportedTypes(importedTypes);
interfaze.addMethod(method);
}