Giter Site home page Giter Site logo

model下的文件 about go-zero-looklook HOT 2 CLOSED

heqiang avatar heqiang commented on June 8, 2024
model下的文件

from go-zero-looklook.

Comments (2)

Mikaelemmmm avatar Mikaelemmmm commented on June 8, 2024

用user举例,请教下,一般根据sql文件只会生成一个对应的model.go文件,里面的方法也只有增删查改那些,你这边生成的userModel_gen.go是正常生成的,userModel.go那个文件是怎么生成的啊,是要自己写吗?

goctl生成的哈,用最新版本的goctl就好了,带_gen是每次执行goctl生成代码会覆盖,不带_gen的 自己自定义的方法写在这里,总之使用goctl生成model,一个表会对应生成这2个文件

from go-zero-looklook.

heqiang avatar heqiang commented on June 8, 2024

from go-zero-looklook.

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.