From 7cc4a602de05ef82472c0b5c96cdde4c8e18489e Mon Sep 17 00:00:00 2001 From: cg33 Date: Sat, 28 Sep 2019 16:09:09 +0800 Subject: [PATCH] add cli todo && delete modules db mod --- admincli/cli.go | 2 ++ modules/db/go.mod | 11 ----------- 2 files changed, 2 insertions(+), 11 deletions(-) delete mode 100644 modules/db/go.mod diff --git a/admincli/cli.go b/admincli/cli.go index 4475b016a..c9aba63fd 100644 --- a/admincli/cli.go +++ b/admincli/cli.go @@ -410,6 +410,8 @@ func Get` + strings.Title(table) + `Table() table.Table { ` + table + `Table.GetForm().FormList = []types.Form{` + // TODO: identify the form type from filed type + for _, model := range columnsModel { formType := "form.Text" diff --git a/modules/db/go.mod b/modules/db/go.mod deleted file mode 100644 index 54eac331d..000000000 --- a/modules/db/go.mod +++ /dev/null @@ -1,11 +0,0 @@ -module github.com/chenhg5/go-admin/modules/db - -go 1.12 - -require ( - github.com/chenhg5/go-admin v0.0.2 - github.com/denisenkom/go-mssqldb v0.0.0-20190418034912-35416408c946 - github.com/go-sql-driver/mysql v1.4.1 - github.com/lib/pq v1.1.0 - github.com/mattn/go-sqlite3 v1.10.0 -)