Add order items

This commit is contained in:
Aditya Siregar
2025-08-08 22:33:08 +07:00
parent c18e915d1e
commit 8e9c14b860
14 changed files with 427 additions and 200 deletions
+2 -1
View File
@@ -108,6 +108,7 @@ type OrderItemResponse struct {
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
PrinterType string `json:"printer_type"`
PaidQuantity int `json:"paid_quantity"`
}
type ListOrdersQuery struct {
@@ -249,7 +250,7 @@ type SplitBillRequest struct {
type SplitBillItemRequest struct {
OrderItemID uuid.UUID `json:"order_item_id" validate:"required"`
Amount float64 `json:"amount" validate:"required,min=0"`
Quantity int `json:"quantity" validate:"required,min=0"`
}
type SplitBillResponse struct {