Administrator
2 days ago 577bef7f8ece263c4bc272bab23fcc8aa4b6083b
src/main/java/cc/mrbird/febs/ai/controller/productRole/AiProductRoleController.java
@@ -29,7 +29,8 @@
    @GetMapping("list")
    public FebsResponse list(AiProductRole dto, QueryRequest request) {
        String companyId = getCurrentUserCompanyId();
        dto.setCompanyId(companyId);
        Map<String, Object> data = getDataTable(aiProductRoleService.listInPage(dto, request));
        return new FebsResponse().success().data(data);
    }
@@ -38,6 +39,8 @@
    @ControllerEndpoint(operation = "新增", exceptionMessage = "操作失败")
    public FebsResponse add(@RequestBody @Valid AiProductRole dto) {
        String companyId = getCurrentUserCompanyId();
        dto.setCompanyId(companyId);
        return aiProductRoleService.add(dto);
    }
@@ -59,7 +62,7 @@
    @GetMapping(value = "/productRoleTree")
    public FebsResponse productRoleTree() {
        return new FebsResponse().success().data(aiProductRoleService.productRoleTree());
        String companyId = getCurrentUserCompanyId();
        return new FebsResponse().success().data(aiProductRoleService.productRoleTree(companyId));
    }
}