Skip to content
Snippets Groups Projects
Commit 56750d8a authored by Дмитрий Цирульников's avatar Дмитрий Цирульников
Browse files

up

parent aead79c1
Branches
Tags v0.3.1
No related merge requests found
......@@ -3,7 +3,7 @@ package module
import (
"encoding/json"
"fmt"
app_types "gitlab.ptnl.moscow/polymatica/common/backend/app-types"
type_module "gitlab.ptnl.moscow/polymatica/common/backend/app-types/type-module"
"io/ioutil"
"log"
"net/http"
......@@ -11,7 +11,7 @@ import (
"path"
)
func Check(serviceUrl string, apiVersion int) (*app_types.ServiceCheckResponse, error) {
func Check(serviceUrl string, apiVersion int) (*type_module.ModuleCheckResponse, error) {
u, errParseCoreUrl := url.Parse(serviceUrl)
if errParseCoreUrl != nil {
......@@ -41,7 +41,7 @@ func Check(serviceUrl string, apiVersion int) (*app_types.ServiceCheckResponse,
return nil, readErr
}
var result app_types.ServiceCheckResponse
var result type_module.ModuleCheckResponse
jsonErr := json.Unmarshal(body, &result)
if jsonErr != nil {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment