Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ydl-generator
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
余保谷
ydl-generator
Commits
79be2d22
Commit
79be2d22
authored
May 05, 2019
by
flying-cattle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改模板
parent
cb9fa13a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
controller.ftl
src/main/resources/freemarker/ftl/controller.ftl
+2
-2
No files found.
src/main/resources/freemarker/ftl/controller.ftl
View file @
79be2d22
...
...
@@ -57,7 +57,7 @@ public class ${entityName}Controller {
@
GetMapping
(
"/getById/{id}"
)
@
ApiOperation
(
value
=
"获取${entityComment}信息"
,
notes
=
"获取${entityComment}信息[${objectName}],作者:${author}"
)
@
ApiImplicitParam
(
paramType
=
"path"
,
name
=
"id"
,
value
=
"${entityComment}id"
,
required
=
true
,
dataType
=
"${idType}"
)
public
JsonResult
<${
entityName
}>
get
${
entityName
}
ById
(@
PathVariable
(
"id"
)${
idType
}
id
){
public
JsonResult
<${
entityName
}>
getById
(@
PathVariable
(
"id"
)${
idType
}
id
){
JsonResult
<${
entityName
}>
result
=
new
JsonResult
<${
entityName
}>();
try
{
${
entityName
}
${
objectName
}=${
objectName
}
ServiceImpl
.
getById
(
id
);
...
...
@@ -86,7 +86,7 @@ public class ${entityName}Controller {
*/
@
PostMapping
(
"/saveOrUpdate"
)
@
ApiOperation
(
value
=
"添加${entityComment}"
,
notes
=
"添加${entityComment}[${objectName}],作者:${author}"
)
public
JsonResult
<${
entityName
}>
insertSelectiv
e
(${
entityName
}
${
objectName
}){
public
JsonResult
<${
entityName
}>
saveOrUpdat
e
(${
entityName
}
${
objectName
}){
JsonResult
<${
entityName
}>
result
=
new
JsonResult
<${
entityName
}>();
try
{
boolean
rg
=${
objectName
}
ServiceImpl
.
saveOrUpdate
(${
objectName
});
...
...
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