Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Springboot Plus
Commits
c1805ba6
Commit
c1805ba6
authored
Nov 10, 2018
by
liudonghua
Browse files
fix function code name
parent
711ceea2
Changes
1
Hide whitespace changes
Inline
Side-by-side
admin-core/src/main/resources/codeTemplate/java/controller.java
View file @
c1805ba6
...
@@ -112,8 +112,8 @@ public class ${entity.name}Controller{
...
@@ -112,8 +112,8 @@ public class ${entity.name}Controller{
return
new
JsonResult
().
success
();
return
new
JsonResult
().
success
();
}
}
\
@PostMapping
(
MODEL
+
"/
update
.json"
)
\
@PostMapping
(
MODEL
+
"/
edit
.json"
)
\
@Function
(
"${basicfunctionCode}.
update
"
)
\
@Function
(
"${basicfunctionCode}.
edit
"
)
\
@ResponseBody
\
@ResponseBody
public
JsonResult
<
String
>
update
(
\
@Validated
(
ValidateConfig
.
UPDATE
.
class
)
$
{
entity
.
name
}
$
{
entity
.
code
})
{
public
JsonResult
<
String
>
update
(
\
@Validated
(
ValidateConfig
.
UPDATE
.
class
)
$
{
entity
.
name
}
$
{
entity
.
code
})
{
boolean
success
=
$
{
service
}.
update
(
$
{
entity
.
code
});
boolean
success
=
$
{
service
}.
update
(
$
{
entity
.
code
});
...
...
Write
Preview
Supports
Markdown
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