| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得邮箱账号") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('system:mail-account:query')") |
| | | public CommonResult<MailAccountRespVO> getMailAccount(@RequestParam("id") Long id) { |
| | | MailAccountDO account = mailAccountService.getMailAccount(id); |
| | | return success(BeanUtils.toBean(account, MailAccountRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得邮箱账号分页") |
| | | @PreAuthorize("@ss.hasPermission('system:mail-account:query')") |
| | | public CommonResult<PageResult<MailAccountRespVO>> getMailAccountPage(@Valid MailAccountPageReqVO pageReqVO) { |
| | | PageResult<MailAccountDO> pageResult = mailAccountService.getMailAccountPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, MailAccountRespVO.class)); |