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
|
||||
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(
|
||||
config.Env.MSHosts.PersonsHost+"/persons/batch/",
|
||||
jsonIds,
|
||||
&map[string][]uuid.UUID{
|
||||
"ids": ids,
|
||||
},
|
||||
header)
|
||||
|
||||
if err != nil || req.StatusCode != 200 {
|
||||
|
||||
Reference in New Issue
Block a user