|
@@ -90,7 +90,7 @@ public class SysPostController extends BaseController
|
|
|
*/
|
|
|
@PreAuthorize("@ss.hasPermi('system:post:edit')")
|
|
|
@Log(title = "岗位管理", businessType = BusinessType.UPDATE)
|
|
|
- @RequestMapping
|
|
|
+ @RequestMapping("/edit")
|
|
|
public AjaxResult edit(@Validated @RequestBody SysPost post)
|
|
|
{
|
|
|
if (UserConstants.NOT_UNIQUE.equals(postService.checkPostNameUnique(post)))
|
|
@@ -110,7 +110,7 @@ public class SysPostController extends BaseController
|
|
|
*/
|
|
|
@PreAuthorize("@ss.hasPermi('system:post:remove')")
|
|
|
@Log(title = "岗位管理", businessType = BusinessType.DELETE)
|
|
|
- @PostMapping("/{postIds}")
|
|
|
+ @RequestMapping("/remove/{postIds}")
|
|
|
public AjaxResult remove(@PathVariable Long[] postIds)
|
|
|
{
|
|
|
return toAjax(postService.deletePostByIds(postIds));
|