Commit 1e589763 authored by fangxinjiang's avatar fangxinjiang

模板权限调整

parent d5f8e0d5
...@@ -66,7 +66,7 @@ public class ${className}Controller { ...@@ -66,7 +66,7 @@ public class ${className}Controller {
* @param ${pk.lowerAttrName} id * @param ${pk.lowerAttrName} id
* @return R * @return R
*/ */
@Operation(summary = "通过id查询", description = "通过id查询") @Operation(summary = "通过id查询", description = "通过id查询:hasPermission('${moduleName}_${pathName}_get')")
@GetMapping("/{${pk.lowerAttrName}}" ) @GetMapping("/{${pk.lowerAttrName}}" )
@PreAuthorize("@pms.hasPermission('${moduleName}_${pathName}_get')" ) @PreAuthorize("@pms.hasPermission('${moduleName}_${pathName}_get')" )
public R getById(@PathVariable("${pk.lowerAttrName}" ) ${pk.attrType} ${pk.lowerAttrName}) { public R getById(@PathVariable("${pk.lowerAttrName}" ) ${pk.attrType} ${pk.lowerAttrName}) {
...@@ -78,7 +78,7 @@ public class ${className}Controller { ...@@ -78,7 +78,7 @@ public class ${className}Controller {
* @param ${classname} ${comments} * @param ${classname} ${comments}
* @return R * @return R
*/ */
@Operation(summary = "新增${comments}", description = "新增${comments}") @Operation(summary = "新增${comments}", description = "新增${comments}:hasPermission('${moduleName}_${pathName}_add')")
@SysLog("新增${comments}" ) @SysLog("新增${comments}" )
@PostMapping @PostMapping
@PreAuthorize("@pms.hasPermission('${moduleName}_${pathName}_add')" ) @PreAuthorize("@pms.hasPermission('${moduleName}_${pathName}_add')" )
...@@ -91,7 +91,7 @@ public class ${className}Controller { ...@@ -91,7 +91,7 @@ public class ${className}Controller {
* @param ${classname} ${comments} * @param ${classname} ${comments}
* @return R * @return R
*/ */
@Operation(summary = "修改${comments}", description = "修改${comments}") @Operation(summary = "修改${comments}", description = "修改${comments}:hasPermission('${moduleName}_${pathName}_edit')")
@SysLog("修改${comments}" ) @SysLog("修改${comments}" )
@PutMapping @PutMapping
@PreAuthorize("@pms.hasPermission('${moduleName}_${pathName}_edit')" ) @PreAuthorize("@pms.hasPermission('${moduleName}_${pathName}_edit')" )
...@@ -104,7 +104,7 @@ public class ${className}Controller { ...@@ -104,7 +104,7 @@ public class ${className}Controller {
* @param ${pk.lowerAttrName} id * @param ${pk.lowerAttrName} id
* @return R * @return R
*/ */
@Operation(summary = "通过id删除${comments}", description = "通过id删除${comments}") @Operation(summary = "通过id删除${comments}", description = "通过id删除${comments}:hasPermission('${moduleName}_${pathName}_del')")
@SysLog("通过id删除${comments}" ) @SysLog("通过id删除${comments}" )
@DeleteMapping("/{${pk.lowerAttrName}}" ) @DeleteMapping("/{${pk.lowerAttrName}}" )
@PreAuthorize("@pms.hasPermission('${moduleName}_${pathName}_del')" ) @PreAuthorize("@pms.hasPermission('${moduleName}_${pathName}_del')" )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment