crud-generator

Generate six-layer CRUD scaffolding with MyBatis-Plus and Swagger annotations.

741|135|Updated Oct 24, 2021
One-click install
npx skills add https://github.com/mfish-qf/mfish-nocode --skill crud-generator-mfish-qf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: crud-generator
Source: https://github.com/mfish-qf/mfish-nocode/tree/main/.qoder/skills/crud-generator
Command: npx skills add https://github.com/mfish-qf/mfish-nocode --skill crud-generator-mfish-qf

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

为 mfish-nocode-pro 项目生成标准增删改查(CRUD)代码,包括 Entity、Req、Mapper、Service、ServiceImpl、Controller 六层结构。当用户说“帮我生成增删改查”、“新增一个模块”、“生成CRUD代码”时使用此 skill。

Core Features & Use Cases

  • 自动生成六层代码结构(Entity、Req、Mapper、Service、ServiceImpl、Controller),确保一致的设计和命名规范。
  • 集成常用技术栈约定:MyBatis-Plus、Swagger/OpenAPI、日志、权限控制和数据权限注解,减少重复配置。
  • 支持按模块快速生成、批量导出模板、以及自定义字段和查询参数以匹配业务场景。

Quick Start

输入模块名和字段信息后,生成完整的 CRUD 骨架代码并放到对应 mf-business 模块路径下。

Frequently Asked Questions about crud-generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate CRUD scaffolding for a new module in Spring Boot?

To generate CRUD scaffolding for a new module, provide the module name and field information to auto-generate six-layer structures including Entity, Req, Mapper, Service, ServiceImpl, and Controller with consistent naming conventions.

How does MyBatis-Plus integrate with auto-generated CRUD code?

MyBatis-Plus integrates with auto-generated CRUD code by embedding its data access conventions directly into the Mapper and ServiceImpl layers, streamlining database interactions and reducing manual query configuration.

Can I add Swagger API annotations when generating API scaffolding?

Yes, Swagger API annotations are automatically applied during API scaffolding generation. The generated Controller and Req layers include OpenAPI documentation hooks to describe endpoints and request parameters.

What's the best way to create a multi-layer backend module for mfish-nocode?

The best way to create a multi-layer backend module for mfish-nocode is to specify your custom fields and query parameters, allowing the generator to output a complete, validated CRUD skeleton directly into the mf-business module path.

Does the generated CRUD code include permission control and logging?

Yes, the generated CRUD code includes permission control and logging. The scaffolding integrates these annotations natively within the Controller and Service layers to enforce access rules and track operations automatically.