|
|
|
@ -3,14 +3,11 @@ package com.psdc.controller.manager; |
|
|
|
|
import com.psdc.annotation.Log; |
|
|
|
|
import com.psdc.core.controller.BaseController; |
|
|
|
|
import com.psdc.core.domain.AjaxResult; |
|
|
|
|
import com.psdc.core.domain.entity.SysUser; |
|
|
|
|
import com.psdc.core.page.TableDataInfo; |
|
|
|
|
import com.psdc.entity.PsdcScene; |
|
|
|
|
import com.psdc.entity.vo.SceneVo; |
|
|
|
|
import com.psdc.enums.BusinessType; |
|
|
|
|
import com.psdc.service.IPsdcSceneService; |
|
|
|
|
import com.psdc.utils.SecurityUtils; |
|
|
|
|
import com.psdc.utils.StringUtils; |
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
|
import org.springframework.security.access.prepost.PreAuthorize; |
|
|
|
|
import org.springframework.validation.annotation.Validated; |
|
|
|
@ -78,5 +75,14 @@ public class PsdcSceneController extends BaseController { |
|
|
|
|
return toAjax(psdcSceneService.update(scenes)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 删除场景策略 |
|
|
|
|
*/ |
|
|
|
|
@PreAuthorize("@ss.hasPermi('system:cl:list')") |
|
|
|
|
@Log(title = "策略管理", businessType = BusinessType.DELETE) |
|
|
|
|
@DeleteMapping() |
|
|
|
|
public AjaxResult remove(@RequestParam String sceneName) { |
|
|
|
|
return toAjax(psdcSceneService.deleteBySceneName(sceneName)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|