Men-Guo / alwayswin

297P Project
0 stars 0 forks source link

User Story9: Handle Auction Sniping #24

Open xiazhvera opened 3 years ago

xiazhvera commented 3 years ago

User Story9: Handle Auction Sniping As an offer request, I would like to check if the auction needs extension, so that the offer is not an auction sniping. Given a bidding offer request over the internet, when the request timestamp is only one minutes earlier than the ending time, then the auction end time will be extended and set in the database.

Estimated Time: 17p*h Github Issue:

Use Case: Handle Auction Sniping Actors: User, Product Database, Product status Database, Bidding Database Precondition:N/A Basic Path: The user enter the offer price and bid button to place an offer The front end send request with product id, price to the backend Add new bidding data into the Bidding Database. The backend figured that the bidding is within the last second, extend the end time of the item The frontend received the success response and the new product info, the frontend display the updated product page