diff --git a/g_appcode.go b/g_appcode.go index 5453ed0..e20cc63 100644 --- a/g_appcode.go +++ b/g_appcode.go @@ -130,7 +130,8 @@ var typeMappingPostgres = map[string]string{ "USER-DEFINED": "string", // user defined "uuid": "string", // uuid "json": "string", // json - "jsonb": "string", + "jsonb": "string", // jsonb + "inet": "string", // ip address } // Table represent a table in a database @@ -1148,7 +1149,7 @@ import ( "github.com/astaxie/beego" ) -// {{ctrlName}}Controller oprations for {{ctrlName}} +// {{ctrlName}}Controller operations for {{ctrlName}} type {{ctrlName}}Controller struct { beego.Controller }