GithubHelp home page GithubHelp logo

Comments (3)

chenxi2015 avatar chenxi2015 commented on June 13, 2024

会持续更新,需要什么也可以在评论区回复

from go-skeleton.

HHC26 avatar HHC26 commented on June 13, 2024

会持续更新,需要什么也可以在评论区回复

可以考虑一下,命令行 连接数据库,根据表生成,model(https://github.com/MQEnergy/gorm-model )和基础的CRUD代码,这样可以减少一些重复工作

from go-skeleton.

chenxi2015 avatar chenxi2015 commented on June 13, 2024

会持续更新,需要什么也可以在评论区回复

可以考虑一下,命令行 连接数据库,根据表生成,model(https://github.com/MQEnergy/gorm-model )和基础的CRUD代码,这样可以减少一些重复工作

这个已经在项目中集成了
1、模型和dao生成执行命令:
go run cmd/cli/main.go genModel -h

2、controller 和 service生成执行命令:
go run cmd/cli/main.go genController -h
go run cmd/cli/main.go genService -h

具体可以参考readme.md文档中有详细使用说明

from go-skeleton.

Related Issues (1)

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.