完善了订单接口

This commit is contained in:
chen-xin-zhi 2024-11-05 19:01:58 +08:00
parent 9de330f739
commit 8573181ba6

View File

@ -95,6 +95,7 @@ public class OrderController {
* @return 是否创建成功
*/
@PostMapping("/add")
@Transactional(rollbackFor = Exception.class)
public BaseResponse<Boolean> addOrder(@RequestBody OrderAddRequest orderAddRequest) {
if (orderAddRequest == null) {
throw new BusinessException(ErrorCode.PARAMS_ERROR);