class AlertGroupController extends BaseController {

    @ApiOperation(value = "grantUser", notes = "GRANT_ALERT_GROUP_NOTES")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "id", value = "ALERT_GROUP_ID", required = true, dataType = "Int", example = "100"),
            @ApiImplicitParam(name = "userIds", value = "USER_IDS", required = true, dataType = "String")
    })
    @PostMapping(value = "/grant-user")
    @ResponseStatus(HttpStatus.OK)
    @ApiException(ALERT_GROUP_GRANT_USER_ERROR)
    public Result grantUser(@ApiIgnore @RequestAttribute(value = Constants.SESSION_USER) User loginUser,
                            @RequestParam(value = "alertgroupId") int alertgroupId,
                            @RequestParam(value = "userIds") String userIds) {
        logger.info("login user {}, grant user, alertGroupId: {},userIds : {}", loginUser.getUserName(), alertgroupId, userIds);
        Map<String, Object> result = alertGroupService.grantUser(loginUser, alertgroupId, userIds);
        return returnDataList(result);
    }

}