-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add path field & getPathInfo interface * feat: add path field & getPathInfo interface * feat: add path field & getPathInfo interface --------- Co-authored-by: wildeslam <[email protected]>
- Loading branch information
Showing
12 changed files
with
147 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...n/java/com/arextest/web/model/contract/contracts/filesystem/FSGetPathInfoRequestType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.arextest.web.model.contract.contracts.filesystem; | ||
|
||
import javax.validation.constraints.Max; | ||
import javax.validation.constraints.Min; | ||
import javax.validation.constraints.NotBlank; | ||
import javax.validation.constraints.NotNull; | ||
import lombok.Data; | ||
|
||
/** | ||
* @author wildeslam. | ||
* @create 2024/6/6 17:06 | ||
*/ | ||
@Data | ||
public class FSGetPathInfoRequestType { | ||
@NotBlank(message = "InfoId cannot be empty") | ||
private String infoId; | ||
@NotNull(message = "nodeType cannot be empty") | ||
@Min(value = 1, message = "nodeType must be greater than or equal to 1") | ||
@Max(value = 3, message = "nodeType must be less than or equal to 3") | ||
private Integer nodeType; | ||
} |
24 changes: 24 additions & 0 deletions
24
.../java/com/arextest/web/model/contract/contracts/filesystem/FSGetPathInfoResponseType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.arextest.web.model.contract.contracts.filesystem; | ||
|
||
import java.util.List; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
/** | ||
* @author wildeslam. | ||
* @create 2024/6/6 17:04 | ||
*/ | ||
@Data | ||
public class FSGetPathInfoResponseType { | ||
private List<FSPathInfoDto> pathInfo; | ||
|
||
|
||
@Data | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
public static class FSPathInfoDto { | ||
private String id; | ||
private String name; | ||
} | ||
} |
3 changes: 2 additions & 1 deletion
3
.../arextest/web/model/contract/contracts/filesystem/FSGetWorkspaceItemTreeResponseType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
package com.arextest.web.model.contract.contracts.filesystem; | ||
|
||
import java.util.List; | ||
import lombok.Data; | ||
|
||
@Data | ||
public class FSGetWorkspaceItemTreeResponseType { | ||
|
||
private FSTreeType fsTree; | ||
|
||
private List<String> path; | ||
} |
3 changes: 2 additions & 1 deletion
3
...com/arextest/web/model/contract/contracts/filesystem/FSGetWorkspaceItemsResponseType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
package com.arextest.web.model.contract.contracts.filesystem; | ||
|
||
import java.util.List; | ||
import lombok.Data; | ||
|
||
|
||
@Data | ||
public class FSGetWorkspaceItemsResponseType { | ||
|
||
private FSNodeType node; | ||
|
||
private List<String> path; | ||
} |
2 changes: 2 additions & 0 deletions
2
...n/java/com/arextest/web/model/contract/contracts/filesystem/FSRemoveItemResponseType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
package com.arextest.web.model.contract.contracts.filesystem; | ||
|
||
import java.util.List; | ||
import lombok.Data; | ||
|
||
@Data | ||
public class FSRemoveItemResponseType { | ||
|
||
private Boolean success; | ||
private List<String> path; | ||
} |
2 changes: 2 additions & 0 deletions
2
.../main/java/com/arextest/web/model/contract/contracts/filesystem/FSRenameResponseType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
package com.arextest.web.model.contract.contracts.filesystem; | ||
|
||
import java.util.List; | ||
import lombok.Data; | ||
|
||
@Data | ||
public class FSRenameResponseType { | ||
|
||
private Boolean success; | ||
private List<String> path; | ||
} |
Oops, something went wrong.