Giter VIP home page Giter VIP logo

Comments (15)

LyricTian avatar LyricTian commented on May 17, 2024 5

嗯,写个简单的工具就可以实现,我自己用的时候就写了一个😁

from gin-admin.

LyricTian avatar LyricTian commented on May 17, 2024

嗯,会存在一些重复,不过,想要处理存储层的完全隔离,需要有一层对象层到实体层的映射。

from gin-admin.

simon-shuffle avatar simon-shuffle commented on May 17, 2024

确实,要是每个业务表都这么做处理累死咯....不过代码清晰干净很多,剩下就是复制粘贴的活儿....

from gin-admin.

CoderPoet avatar CoderPoet commented on May 17, 2024

哈哈 这个时候需要一个代码生成器

from gin-admin.

simon-shuffle avatar simon-shuffle commented on May 17, 2024

求大佬科普,golang如何实现代码生成,自寻资料找到这个https://github.com/goadesign/goa

from gin-admin.

CoderPoet avatar CoderPoet commented on May 17, 2024

嗯,写个简单的工具就可以实现,我自己用的时候就写了一个😁

大佬,工具一并开源了呀!!

from gin-admin.

lchjczw avatar lchjczw commented on May 17, 2024

@LyricTian 大佬,要不把代码生成器一并开源了

from gin-admin.

papandadj avatar papandadj commented on May 17, 2024

@lchjczw https://github.com/jinzhu/copier 这个是可以直接映射的

from gin-admin.

CoderPoet avatar CoderPoet commented on May 17, 2024

@lchjczw https://github.com/jinzhu/copier 这个是可以直接映射的

你的意思是直接拷贝一个,而不是弄两个结构体转来转去?

from gin-admin.

krilie avatar krilie commented on May 17, 2024

有没有更好的处理方式 两个model包 一个bill一个scheme 还有entity 要绕死了

from gin-admin.

CoderPoet avatar CoderPoet commented on May 17, 2024

通通干掉 怎么简洁怎么来 :)

from gin-admin.

krilie avatar krilie commented on May 17, 2024

简洁 不容易出错 好维护

from gin-admin.

wangerx avatar wangerx commented on May 17, 2024

嗯,写个简单的工具就可以实现,我自己用的时候就写了一个😁

大佬,工具一并开源了呀!!

from gin-admin.

angelporo avatar angelporo commented on May 17, 2024

确实有点绕 , 同求开源代码生成器/:B-)

from gin-admin.

chenyu1990 avatar chenyu1990 commented on May 17, 2024

@lchjczw @wangerx https://github.com/LyricTian/gin-admin-cli

from gin-admin.

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.