package dto_astrologer

// ResendOTPRequest identifies the account by any one of id, mobile or email.
//
// The binding used to name only the other two, so a request carrying just an id
// — which the service resolves perfectly well — was rejected by the validator
// before it ever reached the service.
type ResendOTPRequest struct {
	UserID uint   `json:"id" binding:"required_without_all=Mobile Email"`
	Mobile string `json:"mobile" binding:"required_without_all=UserID Email"`
	Email  string `json:"email" binding:"required_without_all=UserID Mobile"`
	Type   string `json:"type" binding:"required,oneof=mobile email both"`
}
