| | |
| | | return returnData(R.SUCCESS.getCode(), smsTemplateService.queryPage(dto, page)); |
| | | } |
| | | |
| | | @GetMapping("/template/list") |
| | | @GetMapping("/aliyun/list") |
| | | @ApiOperation(value = "短信模板列表", httpMethod = "GET") |
| | | public ResponseEntity<ReturnDataDTO<Page<SmsTemplateDO>>> getALSmsTemplateList(Page page, SmsTemplateQueryDTO dto) throws Exception { |
| | | Client client = createClient(); |
| | |
| | | return new Client(config); |
| | | } |
| | | |
| | | @GetMapping("/aliyun/all") |
| | | @ApiOperation(value = "阿里云短信模板下拉列表", httpMethod = "GET") |
| | | @GetMapping("/templateName/all") |
| | | @ApiOperation(value = "短信模板下拉列表", httpMethod = "GET") |
| | | public ResponseEntity<ReturnDataDTO> getSmsTemplateNameList() { |
| | | List<SmsTemplateListVO> allTemplateName = smsTemplateService.getAllTemplateName(); |
| | | return returnData(R.SUCCESS.getCode(), allTemplateName); |