puzhibing
2026-02-26 493b0377ea1d14ffd5e8f11d2af200c8a5c22dd5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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>
 * 运维人员角色中间表 前端控制器
 * </p>
 *
 * @author mitao
 * @since 2026-02-03
 */
@Controller
@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);
    }
 
 
}