Pārlūkot izejas kodu

修改个人生平

Alex 4 gadi atpakaļ
vecāks
revīzija
06e780391e

+ 8 - 7
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/TPersonalImgController.java

@@ -40,7 +40,7 @@ import org.springframework.web.multipart.MultipartFile;
  */
 @RequiredArgsConstructor(onConstructor_ = @Autowired)
 @RestController
-@RequestMapping("/system/personalImg" )
+@RequestMapping("/system/personal/img" )
 public class TPersonalImgController extends BaseController {
 
     private final ITPersonalImgService iTPersonalImgService;
@@ -51,7 +51,7 @@ public class TPersonalImgController extends BaseController {
     /**
      * 查询个人页 图片列表
      */
-    @PreAuthorize("@ss.hasPermi('system:img:list')")
+    @PreAuthorize("@ss.hasPermi('system:personal:img:list')")
     @GetMapping("/list")
     public TableDataInfo list(TPersonalImg tPersonalImg)
     {
@@ -85,7 +85,7 @@ public class TPersonalImgController extends BaseController {
     /**
      * 导出个人页 图片列表
      */
-    @PreAuthorize("@ss.hasPermi('system:img:export')" )
+    @PreAuthorize("@ss.hasPermi('system:personal:img:export')" )
     @Log(title = "个人页 图片" , businessType = BusinessType.EXPORT)
     @GetMapping("/export" )
     public AjaxResult export(TPersonalImg tPersonalImg) {
@@ -98,7 +98,7 @@ public class TPersonalImgController extends BaseController {
     /**
      * 获取个人页 图片详细信息
      */
-    @PreAuthorize("@ss.hasPermi('system:img:query')" )
+    @PreAuthorize("@ss.hasPermi('system:personal:img:query')" )
     @GetMapping(value = "/{id}" )
     public AjaxResult getInfo(@PathVariable("id" ) Long id) {
         return AjaxResult.success(iTPersonalImgService.getById(id));
@@ -107,7 +107,7 @@ public class TPersonalImgController extends BaseController {
     /**
      * 新增个人页 图片
      */
-    @PreAuthorize("@ss.hasPermi('system:img:add')" )
+    @PreAuthorize("@ss.hasPermi('system:personal:img:add')" )
     @Log(title = "个人页 图片" , businessType = BusinessType.INSERT)
     @PostMapping
     public AjaxResult add(@RequestBody TPersonalImg tPersonalImg) {
@@ -117,7 +117,7 @@ public class TPersonalImgController extends BaseController {
     /**
      * 修改个人页 图片
      */
-    @PreAuthorize("@ss.hasPermi('system:img:edit')" )
+    @PreAuthorize("@ss.hasPermi('system:personal:img:edit')" )
     @Log(title = "个人页 图片" , businessType = BusinessType.UPDATE)
     @PutMapping
     public AjaxResult edit(@RequestBody TPersonalImg tPersonalImg) {
@@ -127,13 +127,14 @@ public class TPersonalImgController extends BaseController {
     /**
      * 删除个人页 图片
      */
-    @PreAuthorize("@ss.hasPermi('system:img:remove')" )
+    @PreAuthorize("@ss.hasPermi('system:personal:img:remove')" )
     @Log(title = "个人页 图片" , businessType = BusinessType.DELETE)
     @DeleteMapping("/{ids}" )
     public AjaxResult remove(@PathVariable Long[] ids) {
         return toAjax(iTPersonalImgService.removeByIds(Arrays.asList(ids)) ? 1 : 0);
     }
 
+    @PreAuthorize("@ss.hasPermi('system:personal:img:add')" )
     @PostMapping("/upload")
     public AjaxResult uploadFile(MultipartFile file, String personalId) throws Exception {
         try {

+ 7 - 7
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/TPersonalMessageController.java

@@ -37,7 +37,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
 @Api(value = "个人页留言内容", tags = "个人页留言内容")
 @RequiredArgsConstructor(onConstructor_ = @Autowired)
 @RestController
-@RequestMapping("/system/message" )
+@RequestMapping("/system/personal/message" )
 public class TPersonalMessageController extends BaseController {
 
     private final ITPersonalMessageService iTPersonalMessageService;
@@ -46,7 +46,7 @@ public class TPersonalMessageController extends BaseController {
      * 查询个人页留言内容列表
      */
     @ApiOperation("查询个人页留言内容列表")
-    @PreAuthorize("@ss.hasPermi('system:message:list')")
+    @PreAuthorize("@ss.hasPermi('system:personal:message:list')")
     @GetMapping("/list")
     public TableDataInfo list(TPersonalMessage tPersonalMessage)
     {
@@ -72,7 +72,7 @@ public class TPersonalMessageController extends BaseController {
      * 导出个人页留言内容列表
      */
     @ApiOperation("导出个人页留言内容列表")
-    @PreAuthorize("@ss.hasPermi('system:message:export')" )
+    @PreAuthorize("@ss.hasPermi('system:personal:message:export')" )
     @Log(title = "个人页留言内容" , businessType = BusinessType.EXPORT)
     @GetMapping("/export" )
     public AjaxResult export(TPersonalMessage tPersonalMessage) {
@@ -86,7 +86,7 @@ public class TPersonalMessageController extends BaseController {
      * 获取个人页留言内容详细信息
      */
     @ApiOperation("获取个人页留言内容详细信息")
-    @PreAuthorize("@ss.hasPermi('system:message:query')" )
+    @PreAuthorize("@ss.hasPermi('system:personal:message:query')" )
     @GetMapping(value = "/{id}" )
     public AjaxResult getInfo(@PathVariable("id" ) Long id) {
         return AjaxResult.success(iTPersonalMessageService.getById(id));
@@ -96,7 +96,7 @@ public class TPersonalMessageController extends BaseController {
      * 新增个人页留言内容
      */
     @ApiOperation("新增个人页留言内容")
-    @PreAuthorize("@ss.hasPermi('system:message:add')" )
+    @PreAuthorize("@ss.hasPermi('system:personal:message:add')" )
     @Log(title = "个人页留言内容" , businessType = BusinessType.INSERT)
     @PostMapping
     public AjaxResult add(@RequestBody TPersonalMessage tPersonalMessage) {
@@ -107,7 +107,7 @@ public class TPersonalMessageController extends BaseController {
      * 修改个人页留言内容
      */
     @ApiOperation("修改个人页留言内容")
-    @PreAuthorize("@ss.hasPermi('system:message:edit')" )
+    @PreAuthorize("@ss.hasPermi('system:personal:message:edit')" )
     @Log(title = "个人页留言内容" , businessType = BusinessType.UPDATE)
     @PutMapping
     public AjaxResult edit(@RequestBody TPersonalMessage tPersonalMessage) {
@@ -118,7 +118,7 @@ public class TPersonalMessageController extends BaseController {
      * 删除个人页留言内容
      */
     @ApiOperation("删除个人页留言内容")
-    @PreAuthorize("@ss.hasPermi('system:message:remove')" )
+    @PreAuthorize("@ss.hasPermi('system:personal:message:remove')" )
     @Log(title = "个人页留言内容" , businessType = BusinessType.DELETE)
     @DeleteMapping("/{ids}" )
     public AjaxResult remove(@PathVariable Long[] ids) {

+ 7 - 7
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/TPersonalModelController.java

@@ -37,7 +37,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
 @Api(value = "个人页留言模板", tags = "个人页留言模板")
 @RequiredArgsConstructor(onConstructor_ = @Autowired)
 @RestController
-@RequestMapping("/system/model" )
+@RequestMapping("/system/personal/model" )
 public class TPersonalModelController extends BaseController {
 
     private final ITPersonalModelService iTPersonalModelService;
@@ -46,7 +46,7 @@ public class TPersonalModelController extends BaseController {
      * 查询个人页留言模板列表
      */
     @ApiOperation("查询个人页留言模板列表")
-    @PreAuthorize("@ss.hasPermi('system:model:list')")
+    @PreAuthorize("@ss.hasPermi('system:personal:model:list')")
     @GetMapping("/list")
     public TableDataInfo list(TPersonalModel tPersonalModel)
     {
@@ -66,7 +66,7 @@ public class TPersonalModelController extends BaseController {
      * 导出个人页留言模板列表
      */
     @ApiOperation("导出个人页留言模板列表")
-    @PreAuthorize("@ss.hasPermi('system:model:export')" )
+    @PreAuthorize("@ss.hasPermi('system:personal:model:export')" )
     @Log(title = "个人页留言模板" , businessType = BusinessType.EXPORT)
     @GetMapping("/export" )
     public AjaxResult export(TPersonalModel tPersonalModel) {
@@ -80,7 +80,7 @@ public class TPersonalModelController extends BaseController {
      * 获取个人页留言模板详细信息
      */
     @ApiOperation("获取个人页留言模板详细信息")
-    @PreAuthorize("@ss.hasPermi('system:model:query')" )
+    @PreAuthorize("@ss.hasPermi('system:personal:model:query')" )
     @GetMapping(value = "/{id}" )
     public AjaxResult getInfo(@PathVariable("id" ) Long id) {
         return AjaxResult.success(iTPersonalModelService.getById(id));
@@ -90,7 +90,7 @@ public class TPersonalModelController extends BaseController {
      * 新增个人页留言模板
      */
     @ApiOperation("新增个人页留言模板")
-    @PreAuthorize("@ss.hasPermi('system:model:add')" )
+    @PreAuthorize("@ss.hasPermi('system:personal:model:add')" )
     @Log(title = "个人页留言模板" , businessType = BusinessType.INSERT)
     @PostMapping
     public AjaxResult add(@RequestBody TPersonalModel tPersonalModel) {
@@ -101,7 +101,7 @@ public class TPersonalModelController extends BaseController {
      * 修改个人页留言模板
      */
     @ApiOperation("修改个人页留言模板")
-    @PreAuthorize("@ss.hasPermi('system:model:edit')" )
+    @PreAuthorize("@ss.hasPermi('system:personal:model:edit')" )
     @Log(title = "个人页留言模板" , businessType = BusinessType.UPDATE)
     @PutMapping
     public AjaxResult edit(@RequestBody TPersonalModel tPersonalModel) {
@@ -112,7 +112,7 @@ public class TPersonalModelController extends BaseController {
      * 删除个人页留言模板
      */
     @ApiOperation("删除个人页留言模板")
-    @PreAuthorize("@ss.hasPermi('system:model:remove')" )
+    @PreAuthorize("@ss.hasPermi('system:personal:model:remove')" )
     @Log(title = "个人页留言模板" , businessType = BusinessType.DELETE)
     @DeleteMapping("/{ids}" )
     public AjaxResult remove(@PathVariable Long[] ids) {

+ 12 - 12
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/TPersonalPageController.java

@@ -35,7 +35,7 @@ import org.springframework.web.multipart.MultipartFile;
 @Api(value = "个人页管理", tags = "个人页管理")
 @RequiredArgsConstructor(onConstructor_ = @Autowired)
 @RestController
-@RequestMapping("/system/personalPage" )
+@RequestMapping("/system/personal/page" )
 public class TPersonalPageController extends BaseController {
 
     private final ITPersonalPageService iTPersonalPageService;
@@ -44,7 +44,7 @@ public class TPersonalPageController extends BaseController {
      * 查询个人页列表
      */
     @ApiOperation("个人页列表")
-    @PreAuthorize("@ss.hasPermi('system:page:list')")
+    @PreAuthorize("@ss.hasPermi('system:personal:page:list')")
     @GetMapping("/list")
     public TableDataInfo list(TPersonalPage tPersonalPage)
     {
@@ -81,8 +81,8 @@ public class TPersonalPageController extends BaseController {
     /**
      * 导出个人页列表
      */
-    @PreAuthorize("@ss.hasPermi('system:page:export')" )
-    @Log(title = "个人页" , businessType = BusinessType.EXPORT)
+    @PreAuthorize("@ss.hasPermi('system:personal:page:export')" )
+    @Log(title = "导出个人页" , businessType = BusinessType.EXPORT)
     @GetMapping("/export" )
     public AjaxResult export(TPersonalPage tPersonalPage) {
         LambdaQueryWrapper<TPersonalPage> lqw = new LambdaQueryWrapper<TPersonalPage>(tPersonalPage);
@@ -94,7 +94,7 @@ public class TPersonalPageController extends BaseController {
     /**
      * 获取个人页详细信息
      */
-    @PreAuthorize("@ss.hasPermi('system:page:query')" )
+    @PreAuthorize("@ss.hasPermi('system:personal:page:query')" )
     @GetMapping(value = "/{id}" )
     public AjaxResult getInfo(@PathVariable("id" ) Long id) {
         return AjaxResult.success(iTPersonalPageService.getById(id));
@@ -103,8 +103,8 @@ public class TPersonalPageController extends BaseController {
     /**
      * 新增个人页
      */
-    @PreAuthorize("@ss.hasPermi('system:page:add')" )
-    @Log(title = "个人页" , businessType = BusinessType.INSERT)
+    @PreAuthorize("@ss.hasPermi('system:personal:page:add')" )
+    @Log(title = "新增个人页" , businessType = BusinessType.INSERT)
     @PostMapping
     public AjaxResult add(@RequestBody TPersonalPage tPersonalPage) {
         return toAjax(iTPersonalPageService.save(tPersonalPage) ? 1 : 0);
@@ -113,8 +113,8 @@ public class TPersonalPageController extends BaseController {
     /**
      * 修改个人页
      */
-    @PreAuthorize("@ss.hasPermi('system:page:edit')" )
-    @Log(title = "个人页" , businessType = BusinessType.UPDATE)
+    @PreAuthorize("@ss.hasPermi('system:personal:page:edit')" )
+    @Log(title = "修改个人页" , businessType = BusinessType.UPDATE)
     @PutMapping
     public AjaxResult edit(@RequestBody TPersonalPage tPersonalPage) {
         return toAjax(iTPersonalPageService.updateById(tPersonalPage) ? 1 : 0);
@@ -123,7 +123,7 @@ public class TPersonalPageController extends BaseController {
     /**
      * 状态修改
      */
-    @PreAuthorize("@ss.hasPermi('system:personalPage:edit')")
+    @PreAuthorize("@ss.hasPermi('system:personal:page:edit')")
     @PutMapping("/changeEnable")
     public AjaxResult changeStatus(@RequestBody TPersonalPage tPersonalPage)
     {
@@ -142,14 +142,14 @@ public class TPersonalPageController extends BaseController {
     /**
      * 删除个人页
      */
-    @PreAuthorize("@ss.hasPermi('system:page:remove')" )
+    @PreAuthorize("@ss.hasPermi('system:personal:page:remove')" )
     @Log(title = "个人页" , businessType = BusinessType.DELETE)
     @DeleteMapping("/{ids}" )
     public AjaxResult remove(@PathVariable Long[] ids) {
         return toAjax(iTPersonalPageService.removeByIds(Arrays.asList(ids)) ? 1 : 0);
     }
 
-    @PreAuthorize("@ss.hasPermi('system:personalPage:edit')")
+    @PreAuthorize("@ss.hasPermi('system:personal:page:edit')")
     @PostMapping("/avatar")
     public AjaxResult avatar(@RequestParam("avatarfile") MultipartFile file, Long id) throws IOException {
         if (!file.isEmpty()) {

+ 8 - 8
ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/TTemplatePageController.java

@@ -36,7 +36,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
  */
 @RequiredArgsConstructor(onConstructor_ = @Autowired)
 @RestController
-@RequestMapping("/system/templatePage" )
+@RequestMapping("/system/personal/template" )
 public class TTemplatePageController extends BaseController {
 
     private final ITTemplatePageService iTTemplatePageService;
@@ -44,7 +44,7 @@ public class TTemplatePageController extends BaseController {
     /**
      * 查询个人页模板列表
      */
-    @PreAuthorize("@ss.hasPermi('system:page:list')")
+    @PreAuthorize("@ss.hasPermi('system:personal:template:list')")
     @GetMapping("/list")
     public TableDataInfo list(TTemplatePage tTemplatePage)
     {
@@ -66,7 +66,7 @@ public class TTemplatePageController extends BaseController {
     /**
      * 导出个人页模板列表
      */
-    @PreAuthorize("@ss.hasPermi('system:page:export')" )
+    @PreAuthorize("@ss.hasPermi('system:personal:template:export')" )
     @Log(title = "个人页模板" , businessType = BusinessType.EXPORT)
     @GetMapping("/export" )
     public AjaxResult export(TTemplatePage tTemplatePage) {
@@ -79,7 +79,7 @@ public class TTemplatePageController extends BaseController {
     /**
      * 获取个人页模板详细信息
      */
-    @PreAuthorize("@ss.hasPermi('system:page:query')" )
+    @PreAuthorize("@ss.hasPermi('system:personal:template:query')" )
     @GetMapping(value = "/{id}" )
     public AjaxResult getInfo(@PathVariable("id" ) Long id) {
         return AjaxResult.success(iTTemplatePageService.getById(id));
@@ -88,7 +88,7 @@ public class TTemplatePageController extends BaseController {
     /**
      * 新增个人页模板
      */
-    @PreAuthorize("@ss.hasPermi('system:page:add')" )
+    @PreAuthorize("@ss.hasPermi('system:personal:template:add')" )
     @Log(title = "个人页模板" , businessType = BusinessType.INSERT)
     @PostMapping
     public AjaxResult add(@RequestBody TTemplatePage tTemplatePage) {
@@ -98,7 +98,7 @@ public class TTemplatePageController extends BaseController {
     /**
      * 修改个人页模板
      */
-    @PreAuthorize("@ss.hasPermi('system:page:edit')" )
+    @PreAuthorize("@ss.hasPermi('system:personal:template:edit')" )
     @Log(title = "个人页模板" , businessType = BusinessType.UPDATE)
     @PutMapping
     public AjaxResult edit(@RequestBody TTemplatePage tTemplatePage) {
@@ -108,7 +108,7 @@ public class TTemplatePageController extends BaseController {
     /**
      * 状态修改
      */
-    @PreAuthorize("@ss.hasPermi('system:templatePage:edit')")
+    @PreAuthorize("@ss.hasPermi('system:personal:template:edit')")
     @PutMapping("/changeEnable")
     public AjaxResult changeStatus(@RequestBody TTemplatePage tTemplatePage)
     {
@@ -127,7 +127,7 @@ public class TTemplatePageController extends BaseController {
     /**
      * 删除个人页模板
      */
-    @PreAuthorize("@ss.hasPermi('system:page:remove')" )
+    @PreAuthorize("@ss.hasPermi('system:personal:template:remove')" )
     @Log(title = "个人页模板" , businessType = BusinessType.DELETE)
     @DeleteMapping("/{ids}" )
     public AjaxResult remove(@PathVariable Long[] ids) {