|
@@ -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()) {
|