|
@@ -13,12 +13,12 @@ import org.springframework.web.bind.annotation.PutMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
-import com.boman.common.core.constant.Constants;
|
|
|
-import com.boman.common.core.constant.UserConstants;
|
|
|
+import com.boman.domain.constant.Constants;
|
|
|
+import com.boman.domain.constant.UserConstants;
|
|
|
import com.boman.common.core.utils.SecurityUtils;
|
|
|
import com.boman.common.core.utils.StringUtils;
|
|
|
import com.boman.common.core.web.controller.BaseController;
|
|
|
-import com.boman.common.core.web.domain.AjaxResult;
|
|
|
+import com.boman.domain.dto.AjaxResult;
|
|
|
import com.boman.common.log.annotation.Log;
|
|
|
import com.boman.common.log.enums.BusinessType;
|
|
|
import com.boman.common.security.annotation.PreAuthorize;
|
|
@@ -105,7 +105,7 @@ public class SysMenuController extends BaseController
|
|
|
* after: 不需要传roleId,查全部的,这样可以保证所有的角色都可以拿到所有的的菜单
|
|
|
*
|
|
|
* @param roleId roleId
|
|
|
- * @return com.boman.common.core.web.domain.AjaxResult
|
|
|
+ * @return com.boman.domain.dto.AjaxResult
|
|
|
*/
|
|
|
@GetMapping(value = "/listTreeByRoleId/{roleId}")
|
|
|
public AjaxResult listTreeByRoleId(@PathVariable("roleId") Long roleId) {
|
|
@@ -117,13 +117,13 @@ public class SysMenuController extends BaseController
|
|
|
* 功能描述: 根据菜单id,找到此菜单以及子菜单下所有的叶子节点
|
|
|
*
|
|
|
* @param menuId menuId
|
|
|
- * @return com.boman.common.core.web.domain.AjaxResult
|
|
|
+ * @return com.boman.domain.dto.AjaxResult
|
|
|
*/
|
|
|
|
|
|
* 功能描述: 根据菜单id,找到此菜单以及子菜单下所有的叶子节点
|
|
|
*
|
|
|
* @param menuId menuId
|
|
|
- * @return com.boman.common.core.web.domain.AjaxResult
|
|
|
+ * @return com.boman.domain.dto.AjaxResult
|
|
|
*/
|
|
|
@GetMapping(value = "/allLeafNodeById/{menuId}")
|
|
|
public AjaxResult allLeafNodeById(@PathVariable("menuId") Long menuId) {
|
|
@@ -135,7 +135,7 @@ public class SysMenuController extends BaseController
|
|
|
*
|
|
|
* @param menuId menuId
|
|
|
* @param roleId roleIdmenu/listTreeByRoleId/1
|
|
|
- * @return com.boman.common.core.web.domain.AjaxResult
|
|
|
+ * @return com.boman.domain.dto.AjaxResult
|
|
|
*/
|
|
|
@GetMapping(value = "/listMenus/roleId/{roleId}/menuId/{menuId}")
|
|
|
public AjaxResult listMenus(@PathVariable("roleId") Long roleId, @PathVariable(value = "menuId", required = false) Long menuId) {
|