27 lines
916 B
Go
27 lines
916 B
Go
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 `query:"user_id"`
|
|
CreatedAt *time.Time `query:"created_at"`
|
|
Type *int16 `query:"type"`
|
|
Status *int16 `query:"status"`
|
|
Description *string `query:"description"`
|
|
}
|