generated from JetBrains/intellij-platform-plugin-template
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(flow): add TaskFlow interface and implement in GenSqlFlow #81
- Added a new file `TaskFlow.kt` in the `cc.unitmesh.devti.flow` package. - The `TaskFlow` interface defines three methods: `clarify()`, `design(context: Any)`, and `execute()`. - Modified the `GenSqlFlow.kt` file to implement the `TaskFlow` interface. - Updated the `clarify()` method to override the interface method. - Updated the `design(context: Any)` method to override the interface method and added a type cast for the `context` parameter. - The changes allow `GenSqlFlow` to implement the `TaskFlow` interface and provide the required functionality.
- Loading branch information
Showing
3 changed files
with
17 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package cc.unitmesh.devti.flow | ||
|
||
interface TaskFlow { | ||
fun clarify(): String | ||
fun design(context: Any): String { | ||
return "" | ||
} | ||
fun execute(): String { | ||
return "" | ||
} | ||
} |