| | |
| | | /** |
| | | * 查询短信账号列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:smsaccount:list')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:smsaccount:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody BaseSmsaccount baseSmsaccount) { |
| | | startPage(); |
| | |
| | | /** |
| | | * 导出短信账号列表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:smsaccount:export')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:smsaccount:export')") |
| | | @Log(title = "短信账号", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, BaseSmsaccount baseSmsaccount) { |
| | |
| | | /** |
| | | * 获取短信账号详细信息 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:smsaccount:query')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:smsaccount:query')") |
| | | @GetMapping(value = "/{smsacountid}") |
| | | public AjaxResult getInfo(@PathVariable("smsacountid") Long smsacountid) { |
| | | return success(baseSmsaccountService.selectBaseSmsaccountBySmsacountid(smsacountid)); |
| | |
| | | /** |
| | | * 新增短信账号 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:smsaccount:add')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:smsaccount:add')") |
| | | @Log(title = "短信账号", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody BaseSmsaccount baseSmsaccount) { |
| | |
| | | /** |
| | | * 修改短信账号 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:smsaccount:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:smsaccount:edit')") |
| | | @Log(title = "短信账号", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody BaseSmsaccount baseSmsaccount) { |
| | |
| | | /** |
| | | * 删除短信账号 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:smsaccount:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:smsaccount:remove')") |
| | | @Log(title = "短信账号", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{smsacountids}") |
| | | public AjaxResult remove(@PathVariable Long[] smsacountids) { |