feat: product search
This commit is contained in:
@@ -67,9 +67,10 @@ async def delete_product(
|
||||
async def get_product(
|
||||
client_id: int,
|
||||
pagination: Annotated[PaginationSchema, Depends(utils.dependecies.pagination_parameters)],
|
||||
search_input: str,
|
||||
session: Annotated[AsyncSession, Depends(get_session)]
|
||||
):
|
||||
return await ProductService(session).get_by_client_id(client_id, pagination)
|
||||
return await ProductService(session).get_by_client_id(client_id, pagination, search_input)
|
||||
|
||||
|
||||
@product_router.get('/get-by-id',
|
||||
@@ -150,7 +151,6 @@ async def get_product_barcode_pdf(
|
||||
)
|
||||
|
||||
|
||||
|
||||
@product_router.post(
|
||||
'/images/upload/{product_id}',
|
||||
response_model=ProductUploadImageResponse,
|
||||
|
||||
Reference in New Issue
Block a user