| | |
| | | import org.springframework.web.bind.annotation.RequestMethod; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.moral.api.entity.Group; |
| | | import com.moral.api.service.GroupService; |
| | |
| | | return ResultMessage.fail(ResponseCodeEnum.PARAMETERS_IS_MISSING.getCode(), |
| | | ResponseCodeEnum.PARAMETERS_IS_MISSING.getMsg()); |
| | | } |
| | | List<Integer> groupIds = userGroupService.getGroupIds(userId); |
| | | return ResultMessage.ok(groupIds); |
| | | List<Map<String, Object>> groups = groupService.getGroupIds(userId); |
| | | return ResultMessage.ok(groups); |
| | | } |
| | | |
| | | @ApiOperation(value = "用户分配组", notes = "用户分配组") |