add default value
This commit is contained in:
parent
7b0122e9e7
commit
aae740c77f
@ -59,6 +59,10 @@ type CheckinExecute struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (o *OrderParam) ToOrderEntity(ctx mycontext.Context) entity.OrderSearch {
|
func (o *OrderParam) ToOrderEntity(ctx mycontext.Context) entity.OrderSearch {
|
||||||
|
if o.Limit == 0 {
|
||||||
|
o.Limit = 10
|
||||||
|
}
|
||||||
|
|
||||||
return entity.OrderSearch{
|
return entity.OrderSearch{
|
||||||
PartnerID: ctx.GetPartnerID(),
|
PartnerID: ctx.GetPartnerID(),
|
||||||
SiteID: ctx.GetSiteID(),
|
SiteID: ctx.GetSiteID(),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user