gin_curd:基于gin gorm快速生成curd代码

时间:2021-03-10 13:15:43
【文件属性】:
文件名称:gin_curd:基于gin gorm快速生成curd代码
文件大小:26KB
文件格式:ZIP
更新时间:2021-03-10 13:15:43
Go 根据模型快速生成基于gin和gorm的嵌入项目 标签: 凝乳 搜索 搜索:喜欢模糊查询 search:true搜索 例子: type TestModel struct { Model Account string `gorm:"account" curd:"search" binding:"required"` Password string `gorm:"password"` RealName string `gorm:"real_name"` } package main import ( "github.com/liujunren93/curl_gin/example/handler/models" "fmt" curd "github.com/liujunren93/curl_gin" ) func main () { //build() } func bu
【文件预览】:
gin_curd-master
----example()
--------handler()
--------main.go(307B)
--------router()
----curd.go(325B)
----aa.json(3KB)
----.idea()
--------misc.xml(174B)
--------vcs.xml(180B)
--------modules.xml(260B)
--------curd.iml(322B)
--------.gitignore(176B)
----file()
--------option.go(3KB)
--------dao.go(3KB)
--------router.go(2KB)
--------entity.go(1KB)
--------ctrl.go(5KB)
--------utils.go(533B)
----doc()
--------build.go(742B)
--------entity.go(3KB)
--------api.go(6KB)
--------build_test.go(359B)
----go.sum(4KB)
----README.md(848B)
----utils()
--------util.go(2KB)
----go.mod(152B)

网友评论