func (order *Order) Validate() (map[string] interface{}, bool) {

	if order.Amount <= 0 {
		return u.Message(false, "Amount should greater than 0"), false
	}
	if order.ApplicationId <= 0 {
		return u.Message(false, "Application Id not found"), false
	}
	//All the required parameters are present
	return u.Message(true, "success"), true
}
/*
 This struct function validate the required parameters sent through the http request body

returns message and true if the requirement is met
*/
This struct function validate the required parameters sent through the http request body

returns message and true if the requirement is met
/ * This struct function validate the required parameters sent through the http request body returns message and true if the requirement is met * /
func (order *Order) Validate() (map[string] interface{}, bool) {
	if order.Amount <= 0 {
		return u.Message(false, "Amount should greater than 0"), false
	}
	if order.ApplicationId <= 0 {
		return u.Message(false, "Application Id not found"), false
	}
	return u.Message(true, "success"), true
}
func ( order * Order ) Validate ( ) ( map [ string ] interface { } , bool ) { if order . Amount <= 0 { return u . Message ( false , " " ) , false } if order . ApplicationId <= 0 { return u . Message ( false , " " ) , false } return u . Message ( true , " " ) , true }
This struct function validate the required parameters sent through the http request body
This struct function validate the required parameters sent through the http request body
//All the required parameters are present