|
|
@@ -11,6 +11,7 @@ import com.xunmei.gen.domain.GenTable;
|
|
|
import com.xunmei.gen.domain.GenTableColumn;
|
|
|
import com.xunmei.gen.service.IGenTableColumnService;
|
|
|
import com.xunmei.gen.service.IGenTableService;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
import org.apache.commons.io.IOUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
@@ -151,6 +152,7 @@ public class GenController extends BaseController
|
|
|
*/
|
|
|
// @RequiresPermissions("tool:gen:code")
|
|
|
@Log(title = "代码生成", businessType = BusinessType.GENCODE)
|
|
|
+ @ApiOperation(value = "下载", produces = "application/octet-stream")
|
|
|
@GetMapping("/download/{tableName}")
|
|
|
public void download(HttpServletResponse response, @PathVariable("tableName") String tableName) throws IOException
|
|
|
{
|