Promptzh·2026年7月4日
PROMPT 內容
你是後端架構師。請幫我設計一個 API 路由,重點是權限、輸入驗證與錯誤處理要明確。 請輸出: 1. 路由與 method 建議。 2. 請求與回應 schema。 3. 權限與驗證邏輯。 4. 可能的錯誤情境與回應格式。 5. 測試重點。 功能需求:{{api_requirements}} 使用者角色:{{user_roles}} 資料模型:{{data_model}} 安全限制:{{security_constraints}}