This commit is contained in:
xiexiaojun
2019-06-27 18:27:11 +08:00
parent 369534bd94
commit 726866ef69
8 changed files with 21 additions and 21 deletions

View File

@@ -1,5 +1,5 @@
# [gormt](https://github.com/xie1xiao1jun/gormt) # [gormt](https://github.com/xxjwxc/gormt)
### mysql database to goang struct conversion tools base on [gorm](https://github.com/jinzhu/gorm)You can automatically generate golang sturct from MySQL database. ### mysql database to goang struct conversion tools base on [gorm](https://github.com/jinzhu/gorm)You can automatically generate golang sturct from MySQL database.
### big Camel-Case Name Rule ### big Camel-Case Name Rule
@@ -200,10 +200,10 @@ type UserInfoTbl struct {
![4](/image/gormt/4.jpg) ![4](/image/gormt/4.jpg)
[Download](https://github.com/xie1xiao1jun/gormt/releases/download/v1.0.0.1/v1.0.zip) [Download](https://github.com/xxjwxc/gormt/releases/download/v1.0.0.1/v1.0.zip)
## 7. Next step ## 7. Next step
- support (ForeignKey) - support (ForeignKey)
- ###### [link](https://xie1xiao1jun.github.io/post/gormtools/) - ###### [link](https://xxjwxc.github.io/post/gormtools/)

View File

@@ -1,5 +1,5 @@
# [gorm-tools](https://github.com/xie1xiao1jun/gorm-tools) # [gorm-tools](https://github.com/xxjwxc/gorm-tools)
### [gorm](https://github.com/jinzhu/gorm) mysql数据库转 struct 工具,可以将mysql数据库自动生成golang sturct结构带大驼峰命名规则。带json标签 ### [gorm](https://github.com/jinzhu/gorm) mysql数据库转 struct 工具,可以将mysql数据库自动生成golang sturct结构带大驼峰命名规则。带json标签
@@ -196,10 +196,10 @@ type UserInfoTbl struct {
![图片描述](/image/gormt/4.jpg) ![图片描述](/image/gormt/4.jpg)
[下载地址](https://github.com/xie1xiao1jun/gormt/releases/download/v1.0.0.1/v1.0.zip) [下载地址](https://github.com/xxjwxc/gormt/releases/download/v1.0.0.1/v1.0.zip)
## 7. 下一步计划 ## 7. 下一步计划
- 加入外键支持(ForeignKey) - 加入外键支持(ForeignKey)
- ###### [传送门](https://xie1xiao1jun.github.io/post/gormtools/) - ###### [传送门](https://xxjwxc.github.io/post/gormtools/)

View File

@@ -4,10 +4,10 @@ import (
"fmt" "fmt"
"os" "os"
"github.com/xie1xiao1jun/public/tools" "github.com/xxjwxc/public/tools"
"github.com/xie1xiao1jun/gormt/data/config" "github.com/xxjwxc/gormt/data/config"
"github.com/xie1xiao1jun/gormt/data/view/gtools" "github.com/xxjwxc/gormt/data/view/gtools"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"gopkg.in/go-playground/validator.v9" "gopkg.in/go-playground/validator.v9"

View File

@@ -3,8 +3,8 @@ package config
import ( import (
"fmt" "fmt"
"github.com/xie1xiao1jun/public/dev" "github.com/xxjwxc/public/dev"
"github.com/xie1xiao1jun/public/tools" "github.com/xxjwxc/public/tools"
"github.com/BurntSushi/toml" "github.com/BurntSushi/toml"
) )

View File

@@ -5,10 +5,10 @@ import (
"regexp" "regexp"
"strings" "strings"
"github.com/xie1xiao1jun/gormt/data/config" "github.com/xxjwxc/gormt/data/config"
"github.com/xie1xiao1jun/gormt/data/view/gtools/generate" "github.com/xxjwxc/gormt/data/view/gtools/generate"
"github.com/xie1xiao1jun/public/mybigcamel" "github.com/xxjwxc/public/mybigcamel"
"github.com/xie1xiao1jun/public/mysqldb" "github.com/xxjwxc/public/mysqldb"
) )
//获取表列及注释 //获取表列及注释

View File

@@ -4,9 +4,9 @@ import (
"fmt" "fmt"
"strings" "strings"
"github.com/xie1xiao1jun/gormt/data/config" "github.com/xxjwxc/gormt/data/config"
"github.com/xie1xiao1jun/public/tools" "github.com/xxjwxc/public/tools"
) )
// 打印 // 打印

View File

@@ -4,9 +4,9 @@ import (
"fmt" "fmt"
"os/exec" "os/exec"
"github.com/xie1xiao1jun/gormt/data/config" "github.com/xxjwxc/gormt/data/config"
"github.com/xie1xiao1jun/public/mysqldb" "github.com/xxjwxc/public/mysqldb"
"github.com/xie1xiao1jun/public/tools" "github.com/xxjwxc/public/tools"
) )
//开始执行 //开始执行

View File

@@ -1,7 +1,7 @@
package main package main
import ( import (
"github.com/xie1xiao1jun/gormt/data/cmd" "github.com/xxjwxc/gormt/data/cmd"
) )
func main() { func main() {