Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4f9ef33ab1 |
@@ -4,10 +4,11 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
basket "git.ego.freeddns.org/egommerce/api-entities/basket/dto"
|
basket "git.ego.freeddns.org/egommerce/api-entities/basket/dto"
|
||||||
|
cnf "git.ego.freeddns.org/egommerce/go-api-pkg/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
func NewBasketAPI() *BasketAPI {
|
func NewBasketAPI() *BasketAPI {
|
||||||
return &BasketAPI{NewHttpClient()}
|
return &BasketAPI{NewHttpClient(cnf.GetEnv("API_REST_BASKET", "basket-svc"))}
|
||||||
}
|
}
|
||||||
|
|
||||||
type BasketAPI struct {
|
type BasketAPI struct {
|
||||||
|
|||||||
@@ -4,10 +4,11 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
pricing "git.ego.freeddns.org/egommerce/api-entities/pricing/dto"
|
pricing "git.ego.freeddns.org/egommerce/api-entities/pricing/dto"
|
||||||
|
cnf "git.ego.freeddns.org/egommerce/go-api-pkg/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
func NewPricingAPI() *PricingAPI {
|
func NewPricingAPI() *PricingAPI {
|
||||||
return &PricingAPI{NewHttpClient()}
|
return &PricingAPI{NewHttpClient(cnf.GetEnv("API_REST_PRICING", "pricing-svc"))}
|
||||||
}
|
}
|
||||||
|
|
||||||
type PricingAPI struct {
|
type PricingAPI struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user