Skip to main content

TNS-1239: Cart-Giỏ hàng

1. Route

Phương thức Route Mô tả
GET /api/v1/auth/get/shop-order Lấy dữ liệu cart từ database
POST /api/v1/auth/post/shop-order Lưu dữ liệu từ cart lên database
POST /api/v1/auth/post/shop-order/update Lưu dữ liệu từ cart lên database (replace and remove)
POST /api/v1/auth/post/shop-order/checkout Checkout sản phẩm đã chọn

2. Mô tả giao diện

-

2.1 List cart: DB: ecom.shop-order, ecom.shop-order-details

Trường -en Trường -vi Cột DB Mô tả Yêu cầuVí dụNote
Unit PriceĐơn giápriceGiá gốc của sản phẩm.
QuantitySố lượngquantitySố lượng của sản phẩm trong giỏ hàng
SubtotalTạm tínhtotal_priceTổng tạm tính của sản phẩm
Price Giá price Giá gốc của sản phẩm.
PriceGiápriceGiá gốc của sản phẩm.
PriceGiápriceGiá gốc của sản phẩm.

2.2 Ô checkout

Trường -enTrường -viCột DBMô tảNote
SubtotalTạm tínhKhôngTổng tất cả tạm tính của sản phẩm trong giỏ
TotalTổng cộngKhôngTổng tạm tính với phí vận chuyển

3. Ref task: #1239 - QA