| | |
| | | /** |
| | | * 查询邮件短信模板列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:sendTemplate:list')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:sendTemplate:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(TjSendTemplate tjSendTemplate) { |
| | | startPage(); |
| | |
| | | /** |
| | | * 导出邮件短信模板列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:sendTemplate:export')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:sendTemplate:export')") |
| | | @Log(title = "邮件短信模板", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, TjSendTemplate tjSendTemplate) { |
| | |
| | | /** |
| | | * 获取邮件短信模板详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:sendTemplate:query')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:sendTemplate:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(tjSendTemplateService.selectTjSendTemplateById(id)); |
| | |
| | | /** |
| | | * 新增邮件短信模板 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:sendTemplate:add')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:sendTemplate:add')") |
| | | @Log(title = "邮件短信模板", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody TjSendTemplate tjSendTemplate) { |
| | |
| | | /** |
| | | * 修改邮件短信模板 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:sendTemplate:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:sendTemplate:edit')") |
| | | @Log(title = "邮件短信模板", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody TjSendTemplate tjSendTemplate) { |
| | |
| | | /** |
| | | * 删除邮件短信模板 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('hosp:sendTemplate:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('hosp:sendTemplate:remove')") |
| | | @Log(title = "邮件短信模板", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |