我已经开发了使用grails web框架的web应用程序,并正在为我的电子商务平台开发这一应用程序,其中我向用户提供了“闪电销售”。
我已经成功地在我的一个控制器中创建了api,其中一个控制器正在为产品预订。这里的逻辑是If that product is completely sold and is not available i.e in other words if i have 0 products remaining then i shouldn't book the product and should tell the booking user about this, f