| | |
| | | package com.xiaopeng.account.controller; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.xiaopeng.account.service.IXpOperationsRoleService; |
| | | 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 javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | * @since 2026-02-03 |
| | | */ |
| | | @Controller |
| | | @RequestMapping("/xp-operations-role") |
| | | @RequestMapping("") |
| | | public class XpOperationsRoleController { |
| | | |
| | | |
| | | @Resource |
| | | private IXpOperationsRoleService xpOperationsRoleService; |
| | | |
| | | |
| | | /** |
| | | * 内部调用 |
| | | * 查询角色对于的运维人员 |
| | | * @param roleId |
| | | * @return |
| | | */ |
| | | @GetMapping("/inner/xp-operations-role/getXpOperationsRoleByRoleId") |
| | | public R<List<XpOperationsRole>> getXpOperationsRoleByRoleId(@RequestParam("roleId") Long roleId) { |
| | | List<XpOperationsRole> list = xpOperationsRoleService.list(new QueryWrapper<XpOperationsRole>().eq("role_id", roleId)); |
| | | return R.ok(list); |
| | | } |
| | | |
| | | |
| | | } |