| | |
| | | import ( |
| | | "log" |
| | | "os" |
| | | "wms/constvar" |
| | | "wms/pkg/logx" |
| | | "wms/pkg/mysqlx" |
| | | |
| | |
| | | JWTSecret string |
| | | FileServer string //文件服务器地址 |
| | | ServerId string //服务ID |
| | | Env constvar.Env |
| | | GrpcPort string //grpc端口号 |
| | | CompanyName string //公司名 |
| | | } |
| | |
| | | apsAddr := os.Getenv("APS_GRPC") |
| | | crmAddr := os.Getenv("CRM_GRPC") |
| | | srmAddr := os.Getenv("SRM_GRPC") |
| | | companyName := os.Getenv("COMPANY_NAME") |
| | | if len(GrpcPort) > 0 { |
| | | WebConf.GrpcPort = GrpcPort |
| | | } |
| | |
| | | if len(srmAddr) > 0 { |
| | | GrpcServerConf.SrmAddr = srmAddr |
| | | } |
| | | if len(companyName) > 0 { |
| | | WebConf.CompanyName = companyName |
| | | } |
| | | |
| | | DBHost := os.Getenv("DB_HOST") |
| | | DBName := os.Getenv("DB_NAME") |