后端 CRUD API 生成器

填写此提示词

为特定资源生成完整的后端 CRUD API 路由,包含身份验证、错误处理和整洁架构。

提示词模板

Act as a Senior Backend Developer proficient in {{Language:[programming_languages]}}.

I am building an application for managing {{Resources: Add anythink you want to manage like TASKS}} and need a robust backend implementation.

### Tech Stack
- **Framework:** {{Framework:[backend_frameworks]}}
- **ORM/Database Tool:** {{ORM:[database_orms]}}
- **Authentication:** {{Auth Provider:[auth_providers]}}

### Requirements
1. **CRUD Routes:** Create endpoints for Creating, Reading (List and Single), Updating, and Deleting {{Resources}}.
2. **Data Model:** The resource should include the following fields: {{Fields List:title; description; status; dueDate; priority}}.
3. **Security:** Protect all routes using {{Auth Provider:[auth_providers]}} based authentication/middleware.
4. **Architecture:** Ensure strict separation of concerns by separating Controller logic (handling requests) from Service logic (business rules/database interaction).
5. **Robustness:** Include standardized error handling and uniform API response structures.

Please provide the complete code for the necessary files and a brief overview of the folder structure.

使用指南

适用场景

  • 以结构化、可复用的提示词为起点,而非空白对话框。
  • 根据自己的需求调整提示词,同时保持原始意图不变。

使用方法

  1. 复制完整的提示词模板。
  2. 将每个变量替换为自己的内容,或从建议选项中选择。
  3. 将完成的提示词粘贴到 ChatGPT、Claude、Gemini 或其他 AI 助手中。

此提示词中的变量

Language 预定义列表

[programming_languages]

Resources

Add anythink you want to manage like TASKS

Framework 预定义列表

[backend_frameworks]

ORM 预定义列表

[database_orms]

Auth Provider 预定义列表

[auth_providers]

Fields List

title; description; status; dueDate; priority

示例起点

Act as a Senior Backend Developer proficient in [programming_languages].

I am building an application for managing Add anythink you want to manage like TASKS and need a robust backend implementation.

### Tech Stack
- **Framework:** [backend_frameworks]
- **ORM/Database Tool:** [database_orms]
- **Authentication:** [auth_providers]

### Requirements
1. **CRUD Routes:** Create endpoints for Creating, Reading (List and Single), Updating, and Deleting Add anythink you want to manage like TASKS.
2. **Data Model:** The resource should include the following fields: title; description; status; dueDate; priority.
3. **Security:** Protect all routes using [auth_providers] based authentication/middleware.
4. **Architecture:** Ensure strict separation of concerns by separating Controller logic (handling requests) from Service logic (business rules/database interaction).
5. **Robustness:** Include...

变量使用说明

变量语法

变量被 {{ 和 }} 包裹,遵循以下格式:

{{variable name: option1, option2, option3 }}

预定义变量

选项可以通过方括号引用预定义变量列表。这些选项以[橙色]显示,提供颜色、语气或语言等常用值。

{{Tone: [tones] }}

自定义选择列表

也可以提供以逗号分隔的内联选项列表。

{{Format: bullet points, paragraphs, numbered list }}
💡

提示:使用这些提示词无需 PUCO 应用!只需复制模板,直接在 ChatGPT、Claude、Gemini 或任何其他 AI 助手中将每个 {{…}} 部分替换为自己的文本。

数秒内使用此提示词

安装 PUCO for Mac:在任意应用中按下快捷键,填写智能表单,粘贴到 ChatGPT、Claude 或 Gemini。每个变量都变成精选下拉菜单,上次的值会被记住。

在 Mac App Store 下载