管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2022-12-26 356e462a40ce85e0382daa860aac096f47b05576
src/main/java/com/lf/server/controller/sys/UserController.java
@@ -213,6 +213,26 @@
    }
    @SysLog()
    @ApiOperation(value = "查询管理员用户")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "type", value = "管理员类别", dataType = "Integer", paramType = "query", example = "1")
    })
    @GetMapping(value = "/selectAdminUsers")
    public ResponseMsg<Object> selectAdminUsers(Integer type) {
        try {
            if (null == type || type < 1) {
                return fail("管理员类别不能为空或小于1", false);
            }
            List<UserEntity> rs = userService.selectAdminUsers(type);
            return success(rs);
        } catch (Exception ex) {
            return fail(ex.getMessage(), false);
        }
    }
    @SysLog()
    @ApiOperation(value = "插入一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "entity", value = "实体类", dataType = "com.lf.server.entity.data.UserEntity", paramType = "body", example = "")