Skip to content

CRUD 开发 ​

平台「代码生成」的 POST /platformapi/system/generator/preview 只返回预览。POST /platformapi/system/generator/generate 会拒绝写入,并抛出:当前只支持预览,不会把生成文件写入项目。

手写模块时对照 server/app/tenantapi/controller/system/DictionaryController.php。类上是 #[RouteGroup],方法上是 #[Get] 或 #[Post],以及 #[Permission]。校验写在控制器里,查询放 Repository,事务放 Service。

基于 MIT 协议开源