feat: add order module
This commit is contained in:
26
backend/app/http/orders/dto.go
Normal file
26
backend/app/http/orders/dto.go
Normal file
@@ -0,0 +1,26 @@
|
||||
package orders
|
||||
|
||||
import "time"
|
||||
|
||||
type UserOrder struct {
|
||||
ID int64 `sql:"primary_key" json:"id"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
Type int16 `json:"type"`
|
||||
Status int16 `json:"status"`
|
||||
OrderSerial string `json:"order_serial"`
|
||||
RemoteOrderSerial string `json:"remote_order_serial"`
|
||||
RefundSerial string `json:"refund_serial"`
|
||||
RemoteRefundSerial string `json:"remote_refund_serial"`
|
||||
Amount int64 `json:"amount"`
|
||||
Currency string `json:"currency"`
|
||||
Description *string `json:"description"`
|
||||
Meta *string `json:"meta"`
|
||||
}
|
||||
|
||||
type UserOrderFilter struct {
|
||||
UserID int64
|
||||
CreatedAt *time.Time `query:"created_at"`
|
||||
Type *int16 `query:"type"`
|
||||
Status *int16 `query:"status"`
|
||||
Description *string `query:"description"`
|
||||
}
|
||||
Reference in New Issue
Block a user