feat: Most of Item and Order controllers

This commit is contained in:
2025-11-10 20:32:23 -07:00
parent 6313a85e96
commit c81b181515
12 changed files with 421 additions and 28 deletions

View File

@@ -0,0 +1,7 @@
package dto
type ItemPriceResponse struct {
ItemId int
ItemName string
ItemPrice float64
}

View File

@@ -0,0 +1,14 @@
package dto
import "time"
type OrderItemPriceResponse struct {
ItemId int
OrderId int
ItemName string
Quantity int
Made int
CreatedAt time.Time
TotalPrice float64
UnitPrice float64
}

14
api/dto/order_response.go Normal file
View File

@@ -0,0 +1,14 @@
package dto
import "time"
type OrderResponse struct {
Id int
UserId int
Orderer string
DateDue time.Time
DatePlaced time.Time
AmountPaid float64
Filled bool
Delivered bool
}