def post(self): required_params = { 'action':'str', 'ride_id':'str', 'match_ride_id':'str' } if not self.check_params(required_params): return action = self.get_argument('action') ride_id = self.get_argument('ride_id') match_ride_id = self.get_argument('match_ride_id') resp = RideHelper.do_action(action=action, ride_id=ride_id, match_ride_id=match_ride_id) self.write(resp)
def post(self): required_params = { 'action': 'str', 'ride_id': 'str', 'match_ride_id': 'str' } if not self.check_params(required_params): return action = self.get_argument('action') ride_id = self.get_argument('ride_id') match_ride_id = self.get_argument('match_ride_id') resp = RideHelper.do_action(action=action, ride_id=ride_id, match_ride_id=match_ride_id) self.write(resp)