update getting file recipe
This commit is contained in:
parent
ea506b8128
commit
3bfbbd778a
10 changed files with 243 additions and 152 deletions
|
|
@ -10,13 +10,15 @@ export class MaterialService {
|
|||
|
||||
getMaterialCodes(
|
||||
matIds?: number[],
|
||||
version?: string
|
||||
country?: string,
|
||||
filename?: string
|
||||
): Observable<MaterialCode[]> {
|
||||
return this._httpClient.get<MaterialCode[]>(
|
||||
`${environment.api}/materials/code`,
|
||||
{
|
||||
params: {
|
||||
version: version || '',
|
||||
country: country || '',
|
||||
filename: filename || '',
|
||||
mat_ids: matIds?.join(',') || '',
|
||||
},
|
||||
withCredentials: true,
|
||||
|
|
@ -26,13 +28,15 @@ export class MaterialService {
|
|||
|
||||
getMaterialSettingById(
|
||||
id: number,
|
||||
version?: string
|
||||
country?: string,
|
||||
filename?: string
|
||||
): Observable<MaterialSetting> {
|
||||
return this._httpClient.get<MaterialSetting>(
|
||||
`${environment.api}/materials/setting/${id}`,
|
||||
{
|
||||
params: {
|
||||
version: version || '',
|
||||
country: country || '',
|
||||
filename: filename || '',
|
||||
},
|
||||
withCredentials: true,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue