mirror of
https://gitee.com/anji-plus/report.git
synced 2026-05-20 08:47:18 +08:00
需求--分享权限控制
This commit is contained in:
@@ -101,6 +101,7 @@ public class ReportDashboardController {
|
||||
|
||||
@PostMapping("/share")
|
||||
@GaeaAuditLog(pageTitle = "分享")
|
||||
@Permission(code = "bigScreenManage", name = "分享报表")
|
||||
public ResponseBean share(@Validated @RequestBody ReportShareDto dto) {
|
||||
return ResponseBean.builder().data(reportShareService.insertShare(dto)).build();
|
||||
}
|
||||
|
||||
@@ -10,8 +10,11 @@ import com.anjiplus.template.gaea.business.modules.reportexcel.controller.dto.Re
|
||||
import com.anjiplus.template.gaea.business.modules.reportexcel.controller.param.ReportExcelParam;
|
||||
import com.anjiplus.template.gaea.business.modules.reportexcel.dao.entity.ReportExcel;
|
||||
import com.anjiplus.template.gaea.business.modules.reportexcel.service.ReportExcelService;
|
||||
import com.anjiplus.template.gaea.business.modules.reportshare.controller.dto.ReportShareDto;
|
||||
import com.anjiplus.template.gaea.business.modules.reportshare.service.ReportShareService;
|
||||
import io.swagger.annotations.Api;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
/**
|
||||
@@ -27,6 +30,9 @@ public class ReportExcelController extends GaeaBaseController<ReportExcelParam,
|
||||
@Autowired
|
||||
private ReportExcelService reportExcelService;
|
||||
|
||||
@Autowired
|
||||
private ReportShareService reportShareService;
|
||||
|
||||
@Override
|
||||
public GaeaBaseService<ReportExcelParam, ReportExcel> getService() {
|
||||
return reportExcelService;
|
||||
@@ -75,4 +81,11 @@ public class ReportExcelController extends GaeaBaseController<ReportExcelParam,
|
||||
// return ResponseBean.builder().code(ResponseCode.SUCCESS_CODE)
|
||||
// .build();
|
||||
// }
|
||||
|
||||
@PostMapping("/share")
|
||||
@GaeaAuditLog(pageTitle = "excel分享")
|
||||
@Permission(code = "reportExcel", name = "分享报表")
|
||||
public ResponseBean share(@Validated @RequestBody ReportShareDto dto) {
|
||||
return ResponseBean.builder().data(reportShareService.insertShare(dto)).build();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
INSERT INTO `aj_report`.`access_authority`(`parent_target`, `target`, `target_name`, `action`, `action_name`, `sort`, `enable_flag`, `delete_flag`, `create_by`, `create_time`, `update_by`, `update_time`, `version`) VALUES ('report', 'excelManage', '表格报表', 'share', '分享报表', 231, 1, 0, 'admin', now(), 'admin', now(), 1);
|
||||
|
||||
INSERT INTO `aj_report`.`access_role_authority`(`role_code`, `target`, `action`) VALUES ('root', 'excelManage', 'share');
|
||||
Reference in New Issue
Block a user