เหมาะสำหรับ
- เริ่มจากพรอมต์ที่มีโครงสร้างและใช้ซ้ำได้ แทนที่จะเป็นแชทเปล่า
- ปรับพรอมต์ให้เข้ากับข้อมูลของคุณ โดยยังคงเจตนาเดิมไว้
สร้างเส้นทาง Backend CRUD API แบบครบถ้วน พร้อมการยืนยันตัวตน การจัดการข้อผิดพลาด และสถาปัตยกรรมที่สะอาดสำหรับ resource เฉพาะ
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.
[programming_languages]
Add anythink you want to manage like TASKS
[backend_frameworks]
[database_orms]
[auth_providers]
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...
ตัวแปรจะอยู่ภายใน {{ และ }} และเป็นไปตามรูปแบบนี้:
ตัวเลือกสามารถอ้างอิงรายการตัวแปรที่กำหนดไว้ล่วงหน้าโดยใช้วงเล็บเหลี่ยม ตัวเลือกเหล่านี้จะแสดงเป็น[สีส้ม]และให้ค่าที่ใช้บ่อย เช่น สี โทน หรือภาษา
คุณยังสามารถระบุรายการตัวเลือกแบบอินไลน์ โดยคั่นด้วยเครื่องหมายจุลภาคได้
เคล็ดลับ: คุณไม่จำเป็นต้องใช้แอป PUCO เพื่อใช้พรอมต์เหล่านี้! เพียงคัดลอกเทมเพลตและแทนที่แต่ละส่วน {{…}} ด้วยข้อความของคุณเองโดยตรงใน ChatGPT, Claude, Gemini หรือผู้ช่วย AI อื่น ๆ