Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
appbuild
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
appbuild
Commits
4fdec01a
Commit
4fdec01a
authored
Jul 15, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加apipost生成接口文档逻辑
parent
6c037f57
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
5 deletions
+6
-5
appbuild-manager/src/main/java/com/mortals/xhx/base/system/gentable/model/GentableEntity.java
...ortals/xhx/base/system/gentable/model/GentableEntity.java
+1
-1
appbuild-manager/src/main/java/com/mortals/xhx/base/system/gentable/service/impl/GentableServiceImpl.java
...ase/system/gentable/service/impl/GentableServiceImpl.java
+1
-1
appbuild-manager/src/main/resources/template/doc/apipost.md.ftl
...ld-manager/src/main/resources/template/doc/apipost.md.ftl
+3
-3
appbuild-manager/src/main/resources/template/java/serviceImpl.java.ftl
...ger/src/main/resources/template/java/serviceImpl.java.ftl
+1
-0
No files found.
appbuild-manager/src/main/java/com/mortals/xhx/base/system/gentable/model/GentableEntity.java
View file @
4fdec01a
...
@@ -530,7 +530,7 @@ public class GentableEntity extends GentableEntityExt {
...
@@ -530,7 +530,7 @@ public class GentableEntity extends GentableEntityExt {
this
.
feignAppName
=
""
;
this
.
feignAppName
=
""
;
this
.
detailShow
=
1
;
this
.
detailShow
=
2
;
this
.
genApi
=
null
;
this
.
genApi
=
null
;
...
...
appbuild-manager/src/main/java/com/mortals/xhx/base/system/gentable/service/impl/GentableServiceImpl.java
View file @
4fdec01a
...
@@ -476,7 +476,7 @@ public class GentableServiceImpl extends AbstractCRUDServiceImpl<GentableDao, Ge
...
@@ -476,7 +476,7 @@ public class GentableServiceImpl extends AbstractCRUDServiceImpl<GentableDao, Ge
String
temp2
=
StringUtils
.
substringBetween
(
column
.
getColumnComment
(),
"("
,
")"
);
String
temp2
=
StringUtils
.
substringBetween
(
column
.
getColumnComment
(),
"("
,
")"
);
GenUtils
.
checkDict
(
column
,
temp1
);
GenUtils
.
checkDict
(
column
,
temp1
);
GenUtils
.
checkDict
(
column
,
temp2
);
GenUtils
.
checkDict
(
column
,
temp2
);
column
.
setColumnComment
(
StrUtil
.
removeAllLineBreaks
(
column
.
getColumnComment
()));
column
.
setColumnComment
(
StrUtil
.
removeAllLineBreaks
(
column
.
getColumnComment
()
.
replaceAll
(
"\""
,
"“"
)
));
return
column
;
return
column
;
}).
collect
(
Collectors
.
toList
());
}).
collect
(
Collectors
.
toList
());
...
...
appbuild-manager/src/main/resources/template/doc/apipost.md.ftl
View file @
4fdec01a
...
@@ -2155,7 +2155,7 @@
...
@@ -2155,7 +2155,7 @@
"field_type":"integer",
"field_type":"integer",
"is_checked":1,
"is_checked":1,
"key":"Authorization",
"key":"Authorization",
"value":"{{token}}
}
",
"value":"{{token}}",
"not_null":1,
"not_null":1,
"type":"integer"
"type":"integer"
}
}
...
@@ -2268,7 +2268,7 @@
...
@@ -2268,7 +2268,7 @@
"field_type":"String",
"field_type":"String",
"is_checked":1,
"is_checked":1,
"key":"Authorization",
"key":"Authorization",
"value":"{{token}}
}
",
"value":"{{token}}",
"not_null":1,
"not_null":1,
"type":"Text"
"type":"Text"
}
}
...
@@ -2765,7 +2765,7 @@
...
@@ -2765,7 +2765,7 @@
"field_type":"String",
"field_type":"String",
"is_checked":1,
"is_checked":1,
"key":"Authorization",
"key":"Authorization",
"value":"{{token}}
}
",
"value":"{{token}}",
"not_null":1,
"not_null":1,
"type":"Text"
"type":"Text"
}
}
...
...
appbuild-manager/src/main/resources/template/java/serviceImpl.java.ftl
View file @
4fdec01a
...
@@ -23,6 +23,7 @@ import ${subPackageName}.service.${subClassName}Service;
...
@@ -23,6 +23,7 @@ import ${subPackageName}.service.${subClassName}Service;
import
org
.
springframework
.
util
.
ObjectUtils
;
import
org
.
springframework
.
util
.
ObjectUtils
;
import
java
.
util
.
Date
;
import
java
.
util
.
Date
;
import
java
.
util
.
Arrays
;
import
java
.
util
.
Arrays
;
import
java
.
util
.
List
;
</#
if
>
</#
if
>
<#
if
pkColumn
??&&
pkColumn
.
isIncrement
==
0
>
<#
if
pkColumn
??&&
pkColumn
.
isIncrement
==
0
>
import
cn
.
hutool
.
core
.
util
.
IdUtil
;
import
cn
.
hutool
.
core
.
util
.
IdUtil
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment