Parcourir la source

📝 docs(commands): add documentation for generic-crud-public-create command

- document the steps for creating public read-only routes following generic CRUD development specifications
- include instructions for route creation, API registration, and client method implementation
- note the requirement for 'public' prefix in route paths
yourname il y a 3 mois
Parent
commit
7b8e2a8fd7
1 fichiers modifiés avec 12 ajouts et 0 suppressions
  1. 12 0
      .roo/commands/generic-crud-public-create.md

+ 12 - 0
.roo/commands/generic-crud-public-create.md

@@ -0,0 +1,12 @@
+---
+description: "通用curd公共只读路由创建指令"
+---
+
+按通用curd开发规范进行公共只读路由创建
+
+步骤
+在src/server/api/public下创建公共只读路由
+注册路由到API   src/server/api.ts
+创建客户端API调用方法   src/client/api.ts
+
+注意: 需要 public 前缀