feat: Most of Item and Order controllers
This commit is contained in:
7
api/dto/item_price_response.go
Normal file
7
api/dto/item_price_response.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package dto
|
||||
|
||||
type ItemPriceResponse struct {
|
||||
ItemId int
|
||||
ItemName string
|
||||
ItemPrice float64
|
||||
}
|
||||
14
api/dto/order_item_price_response.go
Normal file
14
api/dto/order_item_price_response.go
Normal 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
14
api/dto/order_response.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user