feat: filter order history
This commit is contained in:
@@ -44,6 +44,7 @@ type OrderParam struct {
|
||||
Limit int `form:"limit" json:"limit" example:"10"`
|
||||
Offset int `form:"offset" json:"offset" example:"0"`
|
||||
Period string `form:"period" json:"period" example:"1d,7d,1m"`
|
||||
Source string `form:"source" json:"source" example:"tes"`
|
||||
}
|
||||
|
||||
func (o *OrderParam) ToOrderEntity(ctx mycontext.Context) entity.OrderSearch {
|
||||
@@ -58,6 +59,7 @@ func (o *OrderParam) ToOrderEntity(ctx mycontext.Context) entity.OrderSearch {
|
||||
EndDate: o.EndDate,
|
||||
Status: o.Status,
|
||||
Period: o.Period,
|
||||
Source: o.Source,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user