Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
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
fangxinjiang
yifu-mvp
Commits
1e589763
Commit
1e589763
authored
Jun 21, 2022
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
模板权限调整
parent
d5f8e0d5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Controller.java.vm
...fu-codegen/src/main/resources/template/Controller.java.vm
+4
-4
No files found.
yifu-visual/yifu-codegen/src/main/resources/template/Controller.java.vm
View file @
1e589763
...
...
@@ -66,7 +66,7 @@ public class ${className}Controller {
*
@
param
${
pk
.
lowerAttrName
}
id
*
@
return
R
*/
@
Operation
(
summary
=
"通过id查询"
,
description
=
"通过id查询"
)
@
Operation
(
summary
=
"通过id查询"
,
description
=
"通过id查询
:hasPermission('${moduleName}_${pathName}_get')
"
)
@
GetMapping
(
"/{${pk.lowerAttrName}}"
)
@
PreAuthorize
(
"@pms.hasPermission('${moduleName}_${pathName}_get')"
)
public
R
getById
(@
PathVariable
(
"${pk.lowerAttrName}"
)
${
pk
.
attrType
}
${
pk
.
lowerAttrName
})
{
...
...
@@ -78,7 +78,7 @@ public class ${className}Controller {
*
@
param
${
classname
}
${
comments
}
*
@
return
R
*/
@
Operation
(
summary
=
"新增${comments}"
,
description
=
"新增${comments}"
)
@
Operation
(
summary
=
"新增${comments}"
,
description
=
"新增${comments}
:hasPermission('${moduleName}_${pathName}_add')
"
)
@
SysLog
(
"新增${comments}"
)
@
PostMapping
@
PreAuthorize
(
"@pms.hasPermission('${moduleName}_${pathName}_add')"
)
...
...
@@ -91,7 +91,7 @@ public class ${className}Controller {
*
@
param
${
classname
}
${
comments
}
*
@
return
R
*/
@
Operation
(
summary
=
"修改${comments}"
,
description
=
"修改${comments}"
)
@
Operation
(
summary
=
"修改${comments}"
,
description
=
"修改${comments}
:hasPermission('${moduleName}_${pathName}_edit')
"
)
@
SysLog
(
"修改${comments}"
)
@
PutMapping
@
PreAuthorize
(
"@pms.hasPermission('${moduleName}_${pathName}_edit')"
)
...
...
@@ -104,7 +104,7 @@ public class ${className}Controller {
*
@
param
${
pk
.
lowerAttrName
}
id
*
@
return
R
*/
@
Operation
(
summary
=
"通过id删除${comments}"
,
description
=
"通过id删除${comments}"
)
@
Operation
(
summary
=
"通过id删除${comments}"
,
description
=
"通过id删除${comments}
:hasPermission('${moduleName}_${pathName}_del')
"
)
@
SysLog
(
"通过id删除${comments}"
)
@
DeleteMapping
(
"/{${pk.lowerAttrName}}"
)
@
PreAuthorize
(
"@pms.hasPermission('${moduleName}_${pathName}_del')"
)
...
...
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