| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得短信日志分页") |
| | | @PreAuthorize("@ss.hasPermission('system:sms-log:query')") |
| | | public CommonResult<PageResult<SmsLogRespVO>> getSmsLogPage(@Valid SmsLogPageReqVO pageReqVO) { |
| | | PageResult<SmsLogDO> pageResult = smsLogService.getSmsLogPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, SmsLogRespVO.class)); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得短信日志") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('system:sms-log:query')") |
| | | public CommonResult<SmsLogRespVO> getSmsLog(@RequestParam("id") Long id) { |
| | | SmsLogDO smsLog = smsLogService.getSmsLog(id); |
| | | return success(BeanUtils.toBean(smsLog, SmsLogRespVO.class)); |