作者 陈爱青

[update] 验证

... ... @@ -2,11 +2,18 @@ package constant
import "os"
var POSTGRESQL_DB_NAME = "terms"
//var POSTGRESQL_DB_NAME = "terms"
//var POSTGRESQL_USER = "postgres"
//var POSTGRESQL_PASSWORD = "123456"
//var POSTGRESQL_HOST = "127.0.0.1"
//var POSTGRESQL_PORT = "5432"
//var DISABLE_CREATE_TABLE = false
//var DISABLE_SQL_GENERATE_PRINT = false
var POSTGRESQL_DB_NAME = "allied_creation_dev"
var POSTGRESQL_USER = "postgres"
var POSTGRESQL_PASSWORD = "123456"
var POSTGRESQL_HOST = "127.0.0.1"
var POSTGRESQL_PORT = "5432"
var POSTGRESQL_HOST = "114.55.200.59"
var POSTGRESQL_PORT = "31543"
var DISABLE_CREATE_TABLE = false
var DISABLE_SQL_GENERATE_PRINT = false
... ...
... ... @@ -68,6 +68,7 @@ func init() {
web.InsertFilter("/v1/manufacture/*", web.BeforeRouter, middleware.CheckAccessToken())
web.InsertFilter("/v1/manufacture/*", web.BeforeRouter, middleware.RedirectInternalService("/v1/manufacture", allied_creation_manufacture.NewHttpLibAlliedCreationManufacture(domain.Operator{})))
web.InsertFilter("/v1/cost/*", web.BeforeRouter, middleware.CheckAccessToken())
web.InsertFilter("/v1/cost/*", web.BeforeRouter, middleware.RedirectInternalService("/v1/cost", cost_structured.NewHttpLibCostStructured(domain.Operator{})))
}
... ...