| | |
| | | import com.xiaopeng.api.model.account.XpOperationsRole; |
| | | import com.xiaopeng.common.core.domain.R; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | |
| | | return R.ok(list); |
| | | } |
| | | |
| | | /** |
| | | * 内部调用 |
| | | * 查询运维人员关联的角色列表 |
| | | * |
| | | * @param operationUserId 运维人员id |
| | | */ |
| | | @GetMapping("/inner/xp-operations-role/listByOperationUserId") |
| | | public R<List<XpOperationsRole>> listByOperationUserId(@RequestParam("operationUserId") Long operationUserId) { |
| | | List<XpOperationsRole> list = xpOperationsRoleService.list(new QueryWrapper<XpOperationsRole>() |
| | | .eq("operations_user_id", operationUserId)); |
| | | return R.ok(list); |
| | | } |
| | | |
| | | } |