add request to personal information
This commit is contained in:
@@ -55,17 +55,11 @@ func GetPersons(ids []uuid.UUID, header http.Header) (map[uuid.UUID]model.Person
|
|||||||
var persons []model.PersonalInformation
|
var persons []model.PersonalInformation
|
||||||
personsMap := make(map[uuid.UUID]model.PersonalInformation)
|
personsMap := make(map[uuid.UUID]model.PersonalInformation)
|
||||||
|
|
||||||
jsonIds, err := json.Marshal(&map[string][]uuid.UUID{
|
|
||||||
"ids": ids,
|
|
||||||
})
|
|
||||||
|
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
data, err, req := api.PostRequest(
|
data, err, req := api.PostRequest(
|
||||||
config.Env.MSHosts.PersonsHost+"/persons/batch/",
|
config.Env.MSHosts.PersonsHost+"/persons/batch/",
|
||||||
jsonIds,
|
&map[string][]uuid.UUID{
|
||||||
|
"ids": ids,
|
||||||
|
},
|
||||||
header)
|
header)
|
||||||
|
|
||||||
if err != nil || req.StatusCode != 200 {
|
if err != nil || req.StatusCode != 200 {
|
||||||
|
|||||||
Reference in New Issue
Block a user