Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BannerResponse ¶
type LoginRequest ¶
type LoginResponse ¶
type MenuRequest ¶
type MenuRequest struct { ID string `form:"id"` Name string `form:"name"` Description string `form:"description"` Price float64 `form:"price" binding:"numeric"` Limit int32 `form:"limit" binding:"numeric"` Offset int32 `form:"offset" binding:"numeric"` }
func (*MenuRequest) ToEntity ¶
func (r *MenuRequest) ToEntity() *entity.Menu
type MenuResponse ¶
type RegisterRequest ¶
type RegisterRequest struct { Name string `json:"name" example:"test" binding:"required,max=50"` Email string `json:"email" example:"test@test.com" binding:"required,email,max=30"` Password string `json:"password" example:"asdf" binding:"required,max=20"` PhoneNumber string `json:"phone_number" example:"08123456789" binding:"required,numeric,max=13"` IsBlocked bool `json:"is_blocked" example:"false"` FcmToken string `json:"fcm_token" example:"asdf123" binding:"required"` }
func (*RegisterRequest) ToEntity ¶
func (r *RegisterRequest) ToEntity() *entity.User
Click to show internal directories.
Click to hide internal directories.