Add Checkin

This commit is contained in:
aditya.siregar
2024-08-13 23:09:05 +07:00
parent 4c8999a3cf
commit e544ef8f71
18 changed files with 362 additions and 101 deletions
+8
View File
@@ -47,6 +47,14 @@ type OrderParam struct {
Source string `form:"source" json:"source" example:"tes"`
}
type Checkin struct {
QRCode string `json:"qr_code" validate:"required"`
}
type CheckinExecute struct {
Token string `json:"token" validate:"required"`
}
func (o *OrderParam) ToOrderEntity(ctx mycontext.Context) entity.OrderSearch {
return entity.OrderSearch{
PartnerID: ctx.GetPartnerID(),