Commit c5c3cd9a authored by 赵啸非's avatar 赵啸非

添加apipost生成接口文档逻辑

parent e3d31180
...@@ -143,12 +143,14 @@ public class GenUtils { ...@@ -143,12 +143,14 @@ public class GenUtils {
// || StringUtils.endsWithIgnoreCase(columnName, "sex")) { // || StringUtils.endsWithIgnoreCase(columnName, "sex")) {
// column.setHtmlType(HtmlTypeEnum.HTML_SELECT.getValue()); // column.setHtmlType(HtmlTypeEnum.HTML_SELECT.getValue());
// } // }
// 图片字段设置图片上传控件 // 图片字段设置图片上传控件logoPath
else if (StringUtils.endsWithIgnoreCase(columnName.toLowerCase(), "imagepath")) { else if (StringUtils.endsWithIgnoreCase(columnName.toLowerCase(), "imagepath")
||StringUtils.endsWithIgnoreCase(columnName.toLowerCase(), "picpath")
||StringUtils.endsWithIgnoreCase(columnName.toLowerCase(), "logoPath")) {
column.setHtmlType(HtmlTypeEnum.HTML_IMAGE_UPLOAD.getValue()); column.setHtmlType(HtmlTypeEnum.HTML_IMAGE_UPLOAD.getValue());
} }
// 文件字段设置文件上传控件 // 文件字段设置文件上传控件
else if (StringUtils.endsWithIgnoreCase(columnName.toLowerCase(), "filepath")) { else if (StringUtils.endsWithIgnoreCase(columnName.toLowerCase(), "filepath")||StringUtils.endsWithIgnoreCase(columnName.toLowerCase(), "videopath")) {
column.setHtmlType(HtmlTypeEnum.HTML_FILE_UPLOAD.getValue()); column.setHtmlType(HtmlTypeEnum.HTML_FILE_UPLOAD.getValue());
} }
// 内容字段设置富文本控件 // 内容字段设置富文本控件
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment