liusheng
2024-09-18 907641e56c2085aaa81f267946dc3e3e9fca73e7
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/tools/BaseSmsaccountController.java
@@ -38,9 +38,9 @@
    /**
     * 查询短信账号列表
     */
    @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);
@@ -49,7 +49,7 @@
    /**
     * 导出短信账号列表
     */
    @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) {
@@ -61,7 +61,7 @@
    /**
     * 获取短信账号详细信息
     */
    @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));
@@ -70,7 +70,7 @@
    /**
     * 新增短信账号
     */
    @PreAuthorize("@ss.hasPermi('smartor:smsaccount:add')")
    //@PreAuthorize("@ss.hasPermi('smartor:smsaccount:add')")
    @Log(title = "短信账号", businessType = BusinessType.INSERT)
    @PostMapping
    public AjaxResult add(@RequestBody BaseSmsaccount baseSmsaccount) {
@@ -80,9 +80,9 @@
    /**
     * 修改短信账号
     */
    @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));
    }
@@ -90,9 +90,9 @@
    /**
     * 删除短信账号
     */
    @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));
    }