Add parecer and deferimento integration

Create models
Update methods in processes
This commit is contained in:
Tiago Kayaya
2020-11-17 14:59:33 +01:00
parent 3ee87a0845
commit 52908b509d
10 changed files with 161 additions and 57 deletions
+24 -1
View File
@@ -95,7 +95,7 @@ export class ProcessesService {
});
}
DispatchTask(body:any){
postDespatcho(body:any){
const geturl = environment.apiURL + 'Processes/CreateDispatch';
let options = {
headers: this.headers,
@@ -104,4 +104,27 @@ export class ProcessesService {
console.log(res);
});
}
postParecer(body:any){
const geturl = environment.apiURL + 'Processes/CreateParecer';
let options = {
headers: this.headers,
};
return this.http.post<any>(`${geturl}`, body, options).toPromise().then(res =>{
console.log(res);
});
}
postDeferimento(body:any){
const geturl = environment.apiURL + 'Processes/CreateDeferimento';
let options = {
headers: this.headers,
};
return this.http.post<any>(`${geturl}`, body, options).toPromise().then(res =>{
console.log(res);
});
}
}