1.修改敏感词接口权限
2.修改技能删除接口
This commit is contained in:
@@ -93,12 +93,12 @@ public class CmsSkillController extends BaseController {
|
||||
*/
|
||||
@Log(title = "删除技能", businessType = BusinessType.DELETE)
|
||||
@ApiOperation("技能")
|
||||
@DeleteMapping("/{id}")
|
||||
public AjaxResult delete(@ApiParam("主键id") @PathVariable Long id){
|
||||
if(id==null){
|
||||
return AjaxResult.error("参数id未传递!");
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult delete(@ApiParam("主键ids") @PathVariable Long[] ids){
|
||||
if(ids==null){
|
||||
return AjaxResult.error("参数ids未传递!");
|
||||
}
|
||||
return toAjax(appSkillService.removeAppskillIds(new Long[]{id}));
|
||||
return toAjax(appSkillService.removeAppskillIds(ids));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -37,7 +37,6 @@ public class SensitiveWordDataController extends BaseController {
|
||||
* 列表
|
||||
*/
|
||||
@ApiOperation("敏感词库详细信息")
|
||||
@PreAuthorize("@ss.hasPermi('cms:sensitiveworddata:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(SensitiveWordData sensitiveWordData){
|
||||
startPage();
|
||||
@@ -49,7 +48,6 @@ public class SensitiveWordDataController extends BaseController {
|
||||
* 获取详细信息
|
||||
*/
|
||||
@ApiOperation("获取敏感词库详细信息")
|
||||
@PreAuthorize("@ss.hasPermi('cms:sensitiveworddata:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult list(@PathVariable("id") Long id){
|
||||
return success(sensitiveWordDataService.selectById(id));
|
||||
@@ -60,7 +58,6 @@ public class SensitiveWordDataController extends BaseController {
|
||||
* 保存
|
||||
*/
|
||||
@ApiOperation("新增敏感词")
|
||||
@PreAuthorize("@ss.hasPermi('cms:sensitiveworddata:add')")
|
||||
@Log(title = "敏感词", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult save(@RequestBody SensitiveWordData sensitiveWordData){
|
||||
@@ -72,7 +69,6 @@ public class SensitiveWordDataController extends BaseController {
|
||||
* 修改
|
||||
*/
|
||||
@ApiOperation("修改敏感词")
|
||||
@PreAuthorize("@ss.hasPermi('cms:sensitiveworddata:edit')")
|
||||
@Log(title = "敏感词", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody SensitiveWordData sensitiveWordData){
|
||||
@@ -83,11 +79,13 @@ public class SensitiveWordDataController extends BaseController {
|
||||
* 删除敏感词
|
||||
*/
|
||||
@ApiOperation("删除敏感词")
|
||||
@PreAuthorize("@ss.hasPermi('cms:sensitiveworddata:remove')")
|
||||
@Log(title = "敏感词", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
if(ids.length==0){
|
||||
return AjaxResult.error("请传递参数!");
|
||||
}
|
||||
return toAjax(sensitiveWordDataService.deleteSensitiveworddataIds(ids));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user