add boxes

This commit is contained in:
Samandar Turg'unboev
2025-06-20 14:21:40 +05:00
parent 4c5df8007c
commit 75dea29b7b
2 changed files with 163 additions and 106 deletions

View File

@@ -30,7 +30,7 @@ export const item_requests = {
return request.get<CommonResponseType<Product[]>>('/items/find', { params });
},
async list(params: { packetId?: number | string; page?: number | string }) {
return request.get<CommonResponseType<{ data: Product[] }>>('/items/list', { params });
return request.get<CommonResponseType<PageAble<{ data: Product[] }>>>('/items/list', { params });
},
async delete(params: { itemId: number | string }) {
return request.delete<CommonResponseType>('/items/delete', { params });