Skip to content

Commit

Permalink
进销存
Browse files Browse the repository at this point in the history
  • Loading branch information
WSL0809 committed Mar 28, 2024
1 parent 1f1f0f0 commit 26f467e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api/IMS/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,8 @@ async def create_product(product: ProductCreate, db: Session = Depends(get_db)):
@router.get("/IMS/get_all_products", response_model=List[ProductResponse])
async def get_all_products(db: Session = Depends(get_db)):
return do_get_all_products(db)


@router.post("/IMS/update_product_quantity", response_model=ProductResponse)
async def update_product(product_id: int, quantity: int, db: Session = Depends(get_db)):
return update_product_quantity(db, product_id, quantity)
Empty file.

0 comments on commit 26f467e

Please sign in to comment.