fix:算法请求调整
This commit is contained in:
@@ -36,9 +36,7 @@ type Config struct {
|
||||
}
|
||||
}
|
||||
BLMService struct {
|
||||
Url string
|
||||
LogoCombine struct {
|
||||
Url string
|
||||
}
|
||||
Version string
|
||||
Urls []string
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,9 +38,9 @@ func NewServiceContext(c config.Config) *ServiceContext {
|
||||
SharedState: nil,
|
||||
AllModels: gmodel.NewAllModels(initalize.InitMysql(c.SourceMysql)),
|
||||
Repositories: initalize.NewAllRepositories(&initalize.NewAllRepositorieData{
|
||||
GormDB: initalize.InitMysql(c.SourceMysql),
|
||||
BLMServiceUrl: &c.BLMService.Url,
|
||||
AwsSession: session.Must(session.NewSession(&config)),
|
||||
GormDB: initalize.InitMysql(c.SourceMysql),
|
||||
BLMServiceUrls: c.BLMService.Urls,
|
||||
AwsSession: session.Must(session.NewSession(&config)),
|
||||
}),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,9 +21,7 @@ type Config struct {
|
||||
}
|
||||
}
|
||||
BLMService struct {
|
||||
Url string
|
||||
LogoCombine struct {
|
||||
Url string
|
||||
}
|
||||
Version string
|
||||
Urls []string
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,10 +5,11 @@ import (
|
||||
"fmt"
|
||||
"fusenapi/server/product-template-tag/internal/config"
|
||||
"fusenapi/shared"
|
||||
"net/http"
|
||||
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/credentials"
|
||||
"github.com/aws/aws-sdk-go/aws/session"
|
||||
"net/http"
|
||||
|
||||
"fusenapi/initalize"
|
||||
"fusenapi/model/gmodel"
|
||||
@@ -38,9 +39,9 @@ func NewServiceContext(c config.Config) *ServiceContext {
|
||||
SharedState: nil,
|
||||
AllModels: gmodel.NewAllModels(initalize.InitMysql(c.SourceMysql)),
|
||||
Repositories: initalize.NewAllRepositories(&initalize.NewAllRepositorieData{
|
||||
GormDB: conn,
|
||||
BLMServiceUrl: &c.BLMService.Url,
|
||||
AwsSession: session.Must(session.NewSession(&config)),
|
||||
GormDB: conn,
|
||||
BLMServiceUrls: c.BLMService.Urls,
|
||||
AwsSession: session.Must(session.NewSession(&config)),
|
||||
}),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,10 +21,8 @@ type Config struct {
|
||||
}
|
||||
}
|
||||
BLMService struct {
|
||||
Url string
|
||||
LogoCombine struct {
|
||||
Url string
|
||||
}
|
||||
Version string
|
||||
Urls []string
|
||||
}
|
||||
Unity struct {
|
||||
Host string
|
||||
|
||||
@@ -5,10 +5,11 @@ import (
|
||||
"fmt"
|
||||
"fusenapi/server/product/internal/config"
|
||||
"fusenapi/shared"
|
||||
"net/http"
|
||||
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/credentials"
|
||||
"github.com/aws/aws-sdk-go/aws/session"
|
||||
"net/http"
|
||||
|
||||
"fusenapi/initalize"
|
||||
"fusenapi/model/gmodel"
|
||||
@@ -39,9 +40,9 @@ func NewServiceContext(c config.Config) *ServiceContext {
|
||||
AllModels: gmodel.NewAllModels(initalize.InitMysql(c.SourceMysql)),
|
||||
AwsSession: session.Must(session.NewSession(&config)),
|
||||
Repositories: initalize.NewAllRepositories(&initalize.NewAllRepositorieData{
|
||||
GormDB: conn,
|
||||
BLMServiceUrl: &c.BLMService.Url,
|
||||
AwsSession: session.Must(session.NewSession(&config)),
|
||||
GormDB: conn,
|
||||
BLMServiceUrls: c.BLMService.Urls,
|
||||
AwsSession: session.Must(session.NewSession(&config)),
|
||||
}),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,7 +22,6 @@ type Config struct {
|
||||
}
|
||||
BLMService struct {
|
||||
Version string
|
||||
Url string
|
||||
Ports []string
|
||||
Urls []string
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,10 +42,9 @@ func NewServiceContext(c config.Config) *ServiceContext {
|
||||
RabbitMq: initalize.InitRabbitMq(c.SourceRabbitMq, nil),
|
||||
AwsSession: session.Must(session.NewSession(&config)),
|
||||
Repositories: initalize.NewAllRepositories(&initalize.NewAllRepositorieData{
|
||||
GormDB: initalize.InitMysql(c.SourceMysql),
|
||||
BLMServiceUrl: &c.BLMService.Url,
|
||||
BLMServicePorts: c.BLMService.Ports,
|
||||
AwsSession: session.Must(session.NewSession(&config)),
|
||||
GormDB: initalize.InitMysql(c.SourceMysql),
|
||||
BLMServiceUrls: c.BLMService.Urls,
|
||||
AwsSession: session.Must(session.NewSession(&config)),
|
||||
}),
|
||||
Tracing: middleware.NewTracingMiddleware().Handle,
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@ package config
|
||||
|
||||
import (
|
||||
"fusenapi/server/shopping-cart/internal/types"
|
||||
|
||||
"github.com/zeromicro/go-zero/rest"
|
||||
)
|
||||
|
||||
@@ -20,10 +21,8 @@ type Config struct {
|
||||
}
|
||||
}
|
||||
BLMService struct {
|
||||
Url string
|
||||
LogoCombine struct {
|
||||
Url string
|
||||
}
|
||||
Version string
|
||||
Urls []string
|
||||
}
|
||||
Unity struct {
|
||||
Host string
|
||||
|
||||
@@ -4,6 +4,7 @@ import (
|
||||
"fusenapi/initalize"
|
||||
"fusenapi/model/gmodel"
|
||||
"fusenapi/server/shopping-cart/internal/config"
|
||||
|
||||
"github.com/aws/aws-sdk-go/aws"
|
||||
"github.com/aws/aws-sdk-go/aws/credentials"
|
||||
"github.com/aws/aws-sdk-go/aws/session"
|
||||
@@ -31,9 +32,9 @@ func NewServiceContext(c config.Config) *ServiceContext {
|
||||
RabbitMq: initalize.InitRabbitMq(c.SourceRabbitMq, nil),
|
||||
AwsSession: session.Must(session.NewSession(&config)),
|
||||
Repositories: initalize.NewAllRepositories(&initalize.NewAllRepositorieData{
|
||||
GormDB: conn,
|
||||
BLMServiceUrl: &c.BLMService.Url,
|
||||
AwsSession: session.Must(session.NewSession(&config)),
|
||||
GormDB: conn,
|
||||
BLMServiceUrls: c.BLMService.Urls,
|
||||
AwsSession: session.Must(session.NewSession(&config)),
|
||||
}),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,6 @@ type Config struct {
|
||||
}
|
||||
BLMService struct {
|
||||
Version string
|
||||
Url string
|
||||
Ports []string
|
||||
Urls []string
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,10 +41,9 @@ func NewServiceContext(c config.Config) *ServiceContext {
|
||||
AllModels: gmodel.NewAllModels(initalize.InitMysql(c.SourceMysql)),
|
||||
AwsSession: session.Must(session.NewSession(&config)),
|
||||
Repositories: initalize.NewAllRepositories(&initalize.NewAllRepositorieData{
|
||||
GormDB: initalize.InitMysql(c.SourceMysql),
|
||||
BLMServiceUrl: &c.BLMService.Url,
|
||||
BLMServicePorts: c.BLMService.Ports,
|
||||
AwsSession: session.Must(session.NewSession(&config)),
|
||||
GormDB: initalize.InitMysql(c.SourceMysql),
|
||||
BLMServiceUrls: c.BLMService.Urls,
|
||||
AwsSession: session.Must(session.NewSession(&config)),
|
||||
}),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,10 +22,8 @@ type Config struct {
|
||||
}
|
||||
}
|
||||
BLMService struct {
|
||||
Url string
|
||||
LogoCombine struct {
|
||||
Url string
|
||||
}
|
||||
Version string
|
||||
Urls []string
|
||||
}
|
||||
Unity struct {
|
||||
Host string
|
||||
|
||||
@@ -41,9 +41,9 @@ func NewServiceContext(c config.Config) *ServiceContext {
|
||||
RabbitMq: initalize.InitRabbitMq(c.SourceRabbitMq, nil),
|
||||
AwsSession: session.Must(session.NewSession(&config)),
|
||||
Repositories: initalize.NewAllRepositories(&initalize.NewAllRepositorieData{
|
||||
GormDB: conn,
|
||||
BLMServiceUrl: &c.BLMService.Url,
|
||||
AwsSession: session.Must(session.NewSession(&config)),
|
||||
GormDB: conn,
|
||||
BLMServiceUrls: c.BLMService.Urls,
|
||||
AwsSession: session.Must(session.NewSession(&config)),
|
||||
}),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user