| | |
| | | import cn.huge.base.common.utils.ObjectUtils; |
| | | import cn.huge.base.common.utils.ReturnFailUtils; |
| | | import cn.huge.base.common.utils.ReturnSucUtils; |
| | | import cn.huge.base.config.CurrentUser; |
| | | import cn.huge.module.kind.domain.dto.RegionSelectJSDTO; |
| | | import cn.huge.module.kind.domain.dto.RegionSelectSaveDTO; |
| | | import cn.huge.module.kind.domain.po.SyRegion; |
| | |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 根据用户ID获取对应权限区域树 |
| | | * @url {ctx}/api/web/syRegion/treeByUserId |
| | | * @return |
| | | * |
| | | */ |
| | | @GetMapping("/treeByUserId") |
| | | public Object treeByUserId(@CurrentUser String userId) { |
| | | try { |
| | | // String userId = "2105120906491001"; |
| | | return ReturnSucUtils.getRepInfo(service.treeByUserId(userId)); |
| | | } catch (Exception e) { |
| | | log.error("Controller接口[SyRegionWebController.treeByUserId]请求异常:"+e, e); |
| | | return ReturnFailUtils.getRepInfo(); |
| | | } |
| | | } |
| | | |
| | | } |