generated from JetBrains/intellij-platform-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 317
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
32 additions
and
3 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
29 changes: 29 additions & 0 deletions
29
src/main/resources/prompts/openai/create_service_rerpository.txt
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,29 @@ | ||
你是一个资深的后端 CRUD 工程师,请根据下面的 Controller 代码,实现对应的 Service 代码和 Repository 代码。要求如下: | ||
{spec} | ||
- 你返回的代码需要能够编译通过,不做解释。 | ||
- 你返回的代码示例如下: | ||
### | ||
```java | ||
import org.springframework.stereotype.Service; | ||
|
||
@Service | ||
public class {serviceName} { | ||
xxxRepository xxxRepository; | ||
|
||
constructor({xxxRepository} {xxxRepository}) { | ||
this.{xxxRepository} = {xxxRepository}; | ||
} | ||
|
||
// {the logic to support on the controller} | ||
} | ||
``` | ||
|
||
```java | ||
import org.springframework.data.repository.CrudRepository; | ||
import org.springframework.stereotype.Repository; | ||
|
||
public class {xxxRepository} extends JpaRepository<{xxx}, Long> { | ||
|
||
} | ||
``` | ||
### |
2 changes: 1 addition & 1 deletion
2
src/main/resources/prompts/openai/lookup_or_create_endpoint.txt
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