1
0
mirror of https://github.com/beego/bee.git synced 2025-07-05 23:30:18 +00:00

bee generate scaffold model

This commit is contained in:
astaxie
2014-08-11 17:01:00 +08:00
parent c58ee3ca2c
commit cd31fe26ed
6 changed files with 359 additions and 23 deletions

View File

@ -585,7 +585,7 @@ func createapi(cmd *Command, args []string) {
ColorLog("[INFO] Using '%s' as 'driver'\n", driver)
ColorLog("[INFO] Using '%s' as 'conn'\n", conn)
ColorLog("[INFO] Using '%s' as 'tables'", tables)
generateModel(string(driver), string(conn), "3", string(tables), path.Join(curpath, packpath))
generateAppcode(string(driver), string(conn), "3", string(tables), path.Join(curpath, packpath))
} else {
os.Mkdir(path.Join(apppath, "models"), 0755)
fmt.Println("create models:", path.Join(apppath, "models"))