feat(FE-438): Load uniformity details on demand

This commit is contained in:
rstubryan
2025-12-29 22:22:09 +07:00
parent 7fcab4d295
commit 98ae56a1aa
4 changed files with 63 additions and 14 deletions
+9 -2
View File
@@ -22,10 +22,17 @@ export class UniformityApiService extends BaseApiService<
}
async getUniformityDetail(
id: number
id: number,
with_details = false
): Promise<BaseApiResponse<UniformityDetail> | undefined> {
return await this.customRequest<BaseApiResponse<UniformityDetail>>(
`/${id}`
`/${id}`,
{
method: 'GET',
params: {
with_details: with_details,
},
}
);
}