Coder Social home page Coder Social logo

能否增加预置父类的功能 about easycode HOT 9 CLOSED

cn-src avatar cn-src commented on September 26, 2024
能否增加预置父类的功能

from easycode.

Comments (9)

makejavas avatar makejavas commented on September 26, 2024

这种东西通常不都是抽出来放在common模块里面吗,为什么要去生成。

from easycode.

cn-src avatar cn-src commented on September 26, 2024

因为生成后的文件,需要针对项目二次调整修改,就像我们生成 entity, service, dao。
代码生成器,本身就意味着存在代码存在【重复】,但之所以还需要用,其实就是在通用模块和个性化业务之间的一个平衡。
像前端开发用到的很多脚手架一样,不仅仅是生成项目配置和结构,还会生成一些预置的代码,这些代码是没必要放到框架里的,生成后还是需要修改。

from easycode.

makejavas avatar makejavas commented on September 26, 2024

这个也可以通过添加模板做到

from easycode.

cn-src avatar cn-src commented on September 26, 2024

但目前只有 database 上有菜单吧,这些只需要一次的预置模板,不太适合在那操作

from easycode.

cn-src avatar cn-src commented on September 26, 2024

不知道有没有选择已有的 entity 来生成代码的方式,有些是以数据库设计为主的,有些是以领域驱动模型设计为主的。

from easycode.

makejavas avatar makejavas commented on September 26, 2024

这个暂时没有

from easycode.

makejavas avatar makejavas commented on September 26, 2024

你可以根据你的想法进行改造,提个PR

from easycode.

cn-src avatar cn-src commented on September 26, 2024

目前插件是只提取 table 元数据信息作为模板参数么?

from easycode.

makejavas avatar makejavas commented on September 26, 2024

是的还有一些project参数以及module参数

from easycode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.