Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -460,3 +460,8 @@ hs_err_pid*
/logs/
**/spotless-index-file
**/pom.xml.versionsBackup

!.mvn/wrapper/maven-wrapper.jar
!.mvn/wrapper/maven-wrapper.properties
!mvnw
!mvnw.cmd
Binary file added .mvn/wrapper/maven-wrapper.jar
Binary file not shown.
2 changes: 2 additions & 0 deletions .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.5/apache-maven-3.9.5-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar
40 changes: 40 additions & 0 deletions app/api/facade/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2023 OpenSPG Authors
~
~ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
~ in compliance with the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software distributed under the License
~ is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
~ or implied.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.antgroup.openspg.app</groupId>
<artifactId>app-parent</artifactId>
<version>0.0.1-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

<artifactId>app-api-facade</artifactId>

<dependencies>
<dependency>
<groupId>com.antgroup.openspg.server</groupId>
<artifactId>common-model</artifactId>
</dependency>
<dependency>
<groupId>com.antgroup.openspg.app</groupId>
<artifactId>app-core-reasoner-model</artifactId>
</dependency>
<dependency>
<groupId>com.antgroup.openspg.app</groupId>
<artifactId>app-core-builder-model</artifactId>
</dependency>
</dependencies>
</project>
459 changes: 459 additions & 0 deletions app/api/facade/scalastyle-config.xml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
package com.antgroup.openspgapp.server.api.facade.dto;

/* loaded from: com.antgroup.openspgapp-api-facade-0.0.1-SNAPSHOT.jar:com/antgroup/openspgapp/server/api/facade/dto/Page.class */
public class Page<T> {
Long total;
Long pageSize;
Long pageNo;
T data;

public void setTotal(final Long total) {
this.total = total;
}

public void setPageSize(final Long pageSize) {
this.pageSize = pageSize;
}

public void setPageNo(final Long pageNo) {
this.pageNo = pageNo;
}

public void setData(final T data) {
this.data = data;
}

public Long getTotal() {
return this.total;
}

public Long getPageSize() {
return this.pageSize;
}

public Long getPageNo() {
return this.pageNo;
}

public T getData() {
return this.data;
}

public Page() {}

public Page(Long pageSize, Long pageNo) {
this.pageSize = pageSize;
this.pageNo = pageNo;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package com.antgroup.openspgapp.server.api.facade.dto.builder;

import com.antgroup.openspg.server.common.model.base.BaseRequest;
import com.antgroup.openspg.server.common.model.bulider.BuilderJob;
import com.antgroup.openspgapp.core.reasoner.model.SubGraph;

/* loaded from: com.antgroup.openspgapp-api-facade-0.0.1-SNAPSHOT.jar:com/antgroup/openspgapp/server/api/facade/dto/builder/BuilderJobSubGraphRequest.class */
public class BuilderJobSubGraphRequest extends BaseRequest {
private static final long serialVersionUID = 2611087767712034352L;
private SubGraph subGraph;
private BuilderJob job;

public SubGraph getSubGraph() {
return this.subGraph;
}

public void setSubGraph(SubGraph subGraph) {
this.subGraph = subGraph;
}

public BuilderJob getJob() {
return this.job;
}

public void setJob(BuilderJob job) {
this.job = job;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
package com.antgroup.openspgapp.server.api.facade.dto.builder;

import com.antgroup.openspg.server.common.model.base.BaseRequest;
import com.antgroup.openspgapp.core.reasoner.model.SubGraph;

/* loaded from: com.antgroup.openspgapp-api-facade-0.0.1-SNAPSHOT.jar:com/antgroup/openspgapp/server/api/facade/dto/builder/WriterGraphRequest.class */
public class WriterGraphRequest extends BaseRequest {
private static final long serialVersionUID = -5051318132737772511L;
private SubGraph subGraph;
private String operation;
Long projectId;

public WriterGraphRequest() {}

public WriterGraphRequest(SubGraph subGraph, String operation, Long projectId) {
this.subGraph = subGraph;
this.operation = operation;
this.projectId = projectId;
}

public SubGraph getSubGraph() {
return this.subGraph;
}

public void setSubGraph(SubGraph subGraph) {
this.subGraph = subGraph;
}

public String getOperation() {
return this.operation;
}

public void setOperation(String operation) {
this.operation = operation;
}

public Long getProjectId() {
return this.projectId;
}

public void setProjectId(Long projectId) {
this.projectId = projectId;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
package com.antgroup.openspgapp.server.api.facade.dto.reasoner.session;

import com.antgroup.openspg.server.common.model.base.BaseRequest;

/* loaded from: com.antgroup.openspgapp-api-facade-0.0.1-SNAPSHOT.jar:com/antgroup/openspgapp/server/api/facade/dto/reasoner/session/CreateSessionRequest.class */
public class CreateSessionRequest extends BaseRequest {
private static final long serialVersionUID = 288748585428580417L;
private Long projectId;
private Long userId;
private String name;
private String description;

public CreateSessionRequest(Long projectId, Long userId, String name, String description) {
this.projectId = projectId;
this.userId = userId;
this.name = name;
this.description = description;
}

public Long getProjectId() {
return this.projectId;
}

public void setProjectId(Long projectId) {
this.projectId = projectId;
}

public Long getUserId() {
return this.userId;
}

public void setUserId(Long userId) {
this.userId = userId;
}

public String getName() {
return this.name;
}

public void setName(String name) {
this.name = name;
}

public String getDescription() {
return this.description;
}

public void setDescription(String description) {
this.description = description;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
package com.antgroup.openspgapp.server.api.facade.dto.reasoner.session;

import com.antgroup.openspg.server.common.model.base.BaseRequest;

/* loaded from: com.antgroup.openspgapp-api-facade-0.0.1-SNAPSHOT.jar:com/antgroup/openspgapp/server/api/facade/dto/reasoner/session/ListSessionRequest.class */
public class ListSessionRequest extends BaseRequest {
private static final long serialVersionUID = 2793740486506426124L;
private Long projectId;
private Long userId;
private Integer limit;

public ListSessionRequest() {}

public ListSessionRequest(Long projectId, Long userId, Integer limit) {
this.projectId = projectId;
this.userId = userId;
this.limit = limit;
}

public Long getProjectId() {
return this.projectId;
}

public void setProjectId(Long projectId) {
this.projectId = projectId;
}

public Long getUserId() {
return this.userId;
}

public void setUserId(Long userId) {
this.userId = userId;
}

public Integer getLimit() {
return this.limit;
}

public void setLimit(Integer limit) {
this.limit = limit;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
package com.antgroup.openspgapp.server.api.facade.dto.reasoner.session;

import com.antgroup.openspg.server.common.model.base.BaseResponse;

/* loaded from: com.antgroup.openspgapp-api-facade-0.0.1-SNAPSHOT.jar:com/antgroup/openspgapp/server/api/facade/dto/reasoner/session/SessionResponse.class */
public class SessionResponse extends BaseResponse {
private static final long serialVersionUID = 7549125593003891395L;
private Long id;
private Long projectId;
private Long userId;
private String name;
private String description;

public Long getId() {
return this.id;
}

public void setId(Long id) {
this.id = id;
}

public Long getProjectId() {
return this.projectId;
}

public void setProjectId(Long projectId) {
this.projectId = projectId;
}

public Long getUserId() {
return this.userId;
}

public void setUserId(Long userId) {
this.userId = userId;
}

public String getName() {
return this.name;
}

public void setName(String name) {
this.name = name;
}

public String getDescription() {
return this.description;
}

public void setDescription(String description) {
this.description = description;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package com.antgroup.openspgapp.server.api.facade.dto.reasoner.session;

/* loaded from: com.antgroup.openspgapp-api-facade-0.0.1-SNAPSHOT.jar:com/antgroup/openspgapp/server/api/facade/dto/reasoner/session/UpdateSessionRequest.class */
public class UpdateSessionRequest extends CreateSessionRequest {
private static final long serialVersionUID = 2721946536933394886L;
private Long id;

public UpdateSessionRequest(Long projectId, Long userId, String name, String description) {
super(projectId, userId, name, description);
}

public UpdateSessionRequest(
Long id, Long projectId, Long userId, String name, String description) {
super(projectId, userId, name, description);
this.id = id;
}

public Long getId() {
return this.id;
}

public void setId(Long id) {
this.id = id;
}
}
Loading
Loading