Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
projectArtifacture
Project
Project
Details
Activity
Releases
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
yangzhaojun
projectArtifacture
Commits
f1cb4d43
Commit
f1cb4d43
authored
Jan 18, 2018
by
李丛阳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善 ftl
parent
4b382b86
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
controller.ftl
src/main/resources/templates/codeftl/controller.ftl
+3
-3
No files found.
src/main/resources/templates/codeftl/controller.ftl
View file @
f1cb4d43
...
@@ -54,7 +54,7 @@ public class ${table.entityName}Controller extends PaginationController<${table.
...
@@ -54,7 +54,7 @@ public class ${table.entityName}Controller extends PaginationController<${table.
@
ApiOperation
(
value
=
"逻辑删除${table.tableRemark!}"
,
notes
=
"逻辑删除${table.tableRemark!}"
)
@
ApiOperation
(
value
=
"逻辑删除${table.tableRemark!}"
,
notes
=
"逻辑删除${table.tableRemark!}"
)
@
ApiImplicitParams
({@
ApiImplicitParam
(
name
=
"id"
,
value
=
"id"
,
required
=
false
,
dataType
=
"varchar"
)})
@
ApiImplicitParams
({@
ApiImplicitParam
(
name
=
"id"
,
value
=
"id"
,
required
=
false
,
dataType
=
"varchar"
)})
@
DeleteMapping
(
"/
{id:
\\
d
+}"
)
@
DeleteMapping
(
"/
delete/{id:
\\
w
+}"
)
public
Result
delete
(@
PathVariable
String
id
)
{
public
Result
delete
(@
PathVariable
String
id
)
{
${
table
.
entityName
}
${
table
.
entityName
?
uncap_first
}
=
new
${
table
.
entityName
}();
${
table
.
entityName
}
${
table
.
entityName
?
uncap_first
}
=
new
${
table
.
entityName
}();
${
table
.
entityName
?
uncap_first
}.
setBusinessId
(
id
);
${
table
.
entityName
?
uncap_first
}.
setBusinessId
(
id
);
...
@@ -68,7 +68,7 @@ public class ${table.entityName}Controller extends PaginationController<${table.
...
@@ -68,7 +68,7 @@ public class ${table.entityName}Controller extends PaginationController<${table.
@
ApiOperation
(
value
=
"修改${table.tableRemark!}"
,
notes
=
"修改${table.tableRemark!}"
)
@
ApiOperation
(
value
=
"修改${table.tableRemark!}"
,
notes
=
"修改${table.tableRemark!}"
)
@
ApiImplicitParams
({@
ApiImplicitParam
(
name
=
"businessId"
,
value
=
"businessId"
,
required
=
false
,
dataType
=
"varchar"
)})
@
ApiImplicitParams
({@
ApiImplicitParam
(
name
=
"businessId"
,
value
=
"businessId"
,
required
=
false
,
dataType
=
"varchar"
)})
@
PutMapping
(
"/
{id:
\\
d
+}"
)
@
PutMapping
(
"/
update/{id:
\\
w
+}"
)
public
Result
update
(@
Valid
${
table
.
entityName
}
${
table
.
entityName
?
uncap_first
},
BindingResult
bindingResult
)
{
public
Result
update
(@
Valid
${
table
.
entityName
}
${
table
.
entityName
?
uncap_first
},
BindingResult
bindingResult
)
{
if
(
bindingResult
.
hasErrors
())
{
if
(
bindingResult
.
hasErrors
())
{
throw
new
ServiceException
(
ResultServiceEnums
.
PARAMETER_ERROR
.
getCode
(),
throw
new
ServiceException
(
ResultServiceEnums
.
PARAMETER_ERROR
.
getCode
(),
...
@@ -83,7 +83,7 @@ public class ${table.entityName}Controller extends PaginationController<${table.
...
@@ -83,7 +83,7 @@ public class ${table.entityName}Controller extends PaginationController<${table.
}
}
@
ApiOperation
(
value
=
"查看单 ${table.tableRemark!}"
,
notes
=
"查看单 ${table.tableRemark!}"
)
@
ApiOperation
(
value
=
"查看单 ${table.tableRemark!}"
,
notes
=
"查看单 ${table.tableRemark!}"
)
@
GetMapping
(
"/
{id:
\\
d
+}"
)
@
GetMapping
(
"/
detail/{id:
\\
w
+}"
)
public
Result
detail
(@
PathVariable
String
id
)
{
public
Result
detail
(@
PathVariable
String
id
)
{
return
Result
.
builder
(
new
PersistModel
(
1
),
return
Result
.
builder
(
new
PersistModel
(
1
),
MessageConstant
.
MESSAGE_ALERT_SUCCESS
,
MessageConstant
.
MESSAGE_ALERT_SUCCESS
,
...
...
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