@Override
    public ActionResult deleteWithPermission(Long id) {
        Dashboard data = queryExistent(id).getData();
        PermissionUtils.checkOperationPermission(data.getUserId());

        DashboardDO dashboardDO = new DashboardDO();
        dashboardDO.setId(id);
        dashboardDO.setDeleted(YesOrNoEnum.YES.getLetter());
        getMapper().updateById(dashboardDO);
        deleteDashboardRelation(id);
        return ActionResult.isSuccess();
    }
@author moji
@version DashboardServiceImpl.java, v 0.1 June 9, 2023 16:06 moji Exp $
@date 2023/06/09
chat2db-server/chat2db-server-domain/chat2db-server-domain-core/src/main/java/ai/chat2db/server/domain/core/impl/DashboardServiceImpl.java