|  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 查询短信账号列表 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @PreAuthorize("@ss.hasPermi('smartor:smsaccount:list')") | 
|---|
|  |  |  | @GetMapping("/list") | 
|---|
|  |  |  | public TableDataInfo list(BaseSmsaccount baseSmsaccount) { | 
|---|
|  |  |  | //@PreAuthorize("@ss.hasPermi('smartor:smsaccount:list')") | 
|---|
|  |  |  | @PostMapping("/list") | 
|---|
|  |  |  | public TableDataInfo list(@RequestBody BaseSmsaccount baseSmsaccount) { | 
|---|
|  |  |  | startPage(); | 
|---|
|  |  |  | List<BaseSmsaccount> list = baseSmsaccountService.selectBaseSmsaccountList(baseSmsaccount); | 
|---|
|  |  |  | return getDataTable(list); | 
|---|
|  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 导出短信账号列表 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @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) | 
|---|
|  |  |  | @PutMapping | 
|---|
|  |  |  | @PostMapping("/edit") | 
|---|
|  |  |  | public AjaxResult edit(@RequestBody BaseSmsaccount baseSmsaccount) { | 
|---|
|  |  |  | return toAjax(baseSmsaccountService.updateBaseSmsaccount(baseSmsaccount)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 删除短信账号 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @PreAuthorize("@ss.hasPermi('smartor:smsaccount:remove')") | 
|---|
|  |  |  | //@PreAuthorize("@ss.hasPermi('smartor:smsaccount:remove')") | 
|---|
|  |  |  | @Log(title = "短信账号", businessType = BusinessType.DELETE) | 
|---|
|  |  |  | @DeleteMapping("/{smsacountids}") | 
|---|
|  |  |  | @GetMapping("/remove/{smsacountids}") | 
|---|
|  |  |  | public AjaxResult remove(@PathVariable Long[] smsacountids) { | 
|---|
|  |  |  | return toAjax(baseSmsaccountService.deleteBaseSmsaccountBySmsacountids(smsacountids)); | 
|---|
|  |  |  | } | 
|---|