正在显示
2 个修改的文件
包含
11 行增加
和
3 行删除
@@ -2,11 +2,18 @@ package constant | @@ -2,11 +2,18 @@ package constant | ||
2 | 2 | ||
3 | import "os" | 3 | import "os" |
4 | 4 | ||
5 | -var POSTGRESQL_DB_NAME = "terms" | 5 | +//var POSTGRESQL_DB_NAME = "terms" |
6 | +//var POSTGRESQL_USER = "postgres" | ||
7 | +//var POSTGRESQL_PASSWORD = "123456" | ||
8 | +//var POSTGRESQL_HOST = "127.0.0.1" | ||
9 | +//var POSTGRESQL_PORT = "5432" | ||
10 | +//var DISABLE_CREATE_TABLE = false | ||
11 | +//var DISABLE_SQL_GENERATE_PRINT = false | ||
12 | +var POSTGRESQL_DB_NAME = "allied_creation_dev" | ||
6 | var POSTGRESQL_USER = "postgres" | 13 | var POSTGRESQL_USER = "postgres" |
7 | var POSTGRESQL_PASSWORD = "123456" | 14 | var POSTGRESQL_PASSWORD = "123456" |
8 | -var POSTGRESQL_HOST = "127.0.0.1" | ||
9 | -var POSTGRESQL_PORT = "5432" | 15 | +var POSTGRESQL_HOST = "114.55.200.59" |
16 | +var POSTGRESQL_PORT = "31543" | ||
10 | var DISABLE_CREATE_TABLE = false | 17 | var DISABLE_CREATE_TABLE = false |
11 | var DISABLE_SQL_GENERATE_PRINT = false | 18 | var DISABLE_SQL_GENERATE_PRINT = false |
12 | 19 |
@@ -68,6 +68,7 @@ func init() { | @@ -68,6 +68,7 @@ func init() { | ||
68 | 68 | ||
69 | web.InsertFilter("/v1/manufacture/*", web.BeforeRouter, middleware.CheckAccessToken()) | 69 | web.InsertFilter("/v1/manufacture/*", web.BeforeRouter, middleware.CheckAccessToken()) |
70 | web.InsertFilter("/v1/manufacture/*", web.BeforeRouter, middleware.RedirectInternalService("/v1/manufacture", allied_creation_manufacture.NewHttpLibAlliedCreationManufacture(domain.Operator{}))) | 70 | web.InsertFilter("/v1/manufacture/*", web.BeforeRouter, middleware.RedirectInternalService("/v1/manufacture", allied_creation_manufacture.NewHttpLibAlliedCreationManufacture(domain.Operator{}))) |
71 | + web.InsertFilter("/v1/cost/*", web.BeforeRouter, middleware.CheckAccessToken()) | ||
71 | web.InsertFilter("/v1/cost/*", web.BeforeRouter, middleware.RedirectInternalService("/v1/cost", cost_structured.NewHttpLibCostStructured(domain.Operator{}))) | 72 | web.InsertFilter("/v1/cost/*", web.BeforeRouter, middleware.RedirectInternalService("/v1/cost", cost_structured.NewHttpLibCostStructured(domain.Operator{}))) |
72 | } | 73 | } |
73 | 74 |
-
请 注册 或 登录 后发表评论