| | |
| | | package cn.huge.module.ctuser.controller.web; |
| | | |
| | | import cn.huge.base.common.dto.SelectTermDTO; |
| | | import cn.huge.base.common.utils.ReturnFailUtils; |
| | | import cn.huge.base.common.utils.ReturnSucUtils; |
| | | import cn.huge.base.config.CurrentUser; |
| | |
| | | return ReturnFailUtils.getRepInfo(); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 选择组织 |
| | | * @url {ctx}/api/web/ctUnit/unitChoose |
| | | * @return Object |
| | | */ |
| | | @GetMapping("/unitChoose") |
| | | public Object unitChoose(@CurrentUser String userId) { |
| | | try { |
| | | List<SelectTermDTO> unitSelectTerms = service.unitChoose(userId); |
| | | return ReturnSucUtils.getRepInfo(unitSelectTerms); |
| | | } catch (Exception e) { |
| | | return ReturnFailUtils.getRepInfo(e.getMessage()); |
| | | } |
| | | } |
| | | } |