def post(self): the_post = Post() self.set_format(the_post.get_format(self)) user_id = the_post.get_user_id(self) instance = LogicSetOnlineSwitch() result = instance.set_online_switch(user_id, 1) return self.response(result)
def post(self): the_post = Post() self.set_format(the_post.get_format(self)) name = the_post.get_name(self) industry = LogicAddIndustry() result = industry.add(name) return self.response(result)
def post(self): OHHOLog.print_log("start register") the_post = Post() OHHOLog.print_log("set the post") self.set_format(the_post.get_format(self)) username = the_post.get_username(self) OHHOLog.print_log("get username") password = the_post.get_password(self) code = the_post.get_code(self) cellphone = the_post.get_cellphone_number(self) country_code = the_post.get_cellphone_country_code(self) if not country_code: country_code = "+86" identity_id = the_post.get_device_identity_id(self) mac_address = the_post.get_device_mac_address(self) imei = the_post.get_imei(self) base_url = the_post.get_base_url(self) register_dict = dict() OHHOLog.print_log("get all parameters") register_dict["username"] = username register_dict["password"] = password register_dict["code"] = code register_dict["identity_id"] = identity_id register_dict["mac_address"] = mac_address register_dict["imei"] = imei register_dict["cellphone"] = cellphone register_dict["country_code"] = country_code cellphone_dict = the_post.get_cellphone(self) instance = LogicRegister(register_dict, cellphone_dict) result = instance.register(base_url) return self.response(result)
def post(self): the_post = Post() self.set_format(the_post.get_format(self)) name = the_post.get_name(self) instance = LogicAddWorkDomain() result = instance.add(name) return self.response(result)
def post(self): the_post = Post() self.set_format(the_post.get_format(self)) identity_id = the_post.get_device_identity_id(self) setting = LogicGetDeviceSetting() result = setting.get_device_setting(identity_id) return self.response(result)
def post(self): the_post = Post() self.set_format(the_post.get_format(self)) user_id = the_post.get_user_id(self) data = the_post.get_data(self) result = LogicAddUserBasic.add_basic(user_id, data) return self.response(result)
def post(self): the_request = Post() self.set_format(the_request.get_format(self)) data = self.request.body instance = LogicTestAddInterestPoint() result = instance.add(data) return self.response(result)
def post(self): the_post = Post() self.set_format(the_post.get_format(self)) base_url = the_post.get_base_url(self) instance = LogicMeetTopic() result = instance.meet_topic() return self.response(result)
def post(self): the_post = Post() self.set_format(the_post.get_format(self)) user_id = the_post.get_user_id(self) base_url = the_post.get_base_url(self) positions = LogicGetMapPositions() result = positions.get(user_id, base_url) return self.response(result)
def post(self): the_post = Post() self.set_format(the_post.get_format(self)) cellphone_number = the_post.get_cellphone_number(self) user_id = the_post.get_user_id(self) instance = LogicUpdateUserAndCellphoneRelation() result = instance.update_user_and_cellphone_relation(cellphone_number, user_id) return self.response(result)
def post(self): the_post = Post() self.set_format(the_post.get_format(self)) user_id = the_post.get_user_id(self) base_url = the_post.get_base_url(self) instance = LogicPollingGetMatchApply() result = instance.get(user_id, base_url) return self.response(result)
def post(self): the_post = Post() self.set_format(the_post.get_format(self)) name = the_post.get_name(self) drink = LogicAddDrink() result = drink.add(name) return self.response(result)
def post(self): the_post = Post() self.set_format(the_post.get_format(self)) user_id = the_post.get_user_id(self) friend_user_id = the_post.get_friend_id(self) instance = LogicRemoveBlack() result = instance.remove_black(user_id, friend_user_id) return self.response(result)
def post(self): the_post = Post() user_id = the_post.get_user_id(self) format = the_post.get_format(self) self.set_format(format) instance = LogicRegister(dict(), dict()) result = instance.unregister(user_id) return self.response(result)
def post(self): the_post = Post() self.set_format(the_post.get_format(self)) user_id = the_post.get_user_id(self) instance = LogicSetMatchSwitch() result = instance.set_match_switch(user_id, 0) return self.response(result)
def post(self): the_post = Post() self.set_format(the_post.get_format(self)) user_id = the_post.get_user_id(self) friend_id = the_post.get_friend_id(self) instance = LogicAgreeFriend() result = instance.agree_friend(user_id, friend_id) return self.response(result)
def post(self): the_post = Post() self.set_format(the_post.get_format(self)) user_id = the_post.get_user_id(self) base_url = the_post.get_base_url(self) instance = LogicListApplyFriend() result = instance.list_apply_friend(user_id, base_url) return self.response(result)
def post(self): the_post = Post() self.set_format(the_post.get_format(self)) user_id = the_post.get_user_id(self) token = the_post.get_token(self) instance = LogicLogout() result = instance.logout(user_id, token) return self.response(result)
def post(self): the_post = Post() self.set_format(the_post.get_format(self)) user_id = the_post.get_user_id(self) identity_id = the_post.get_device_identity_id(self) cancel_lost = LogicCancelLost() result = cancel_lost.cancel_lost(user_id, identity_id) return self.response(result)
def post(self): the_post = Post() self.set_format(the_post.get_format(self)) user_id = the_post.get_user_id(self) name = the_post.get_name(self) condition = LogicGetMatchCondition() result, query = condition.get(user_id, name) return self.response(result)
def post(self): the_post = Post() self.set_format(the_post.get_format(self)) user_id = the_post.get_user_id(self) identity_id = the_post.get_device_identity_id(self) mac_address = the_post.get_device_mac_address(self) instance = LogicUnbindDevice() result = instance.unbind_device(user_id, identity_id, mac_address) return self.response(result)
def post(self): the_post = Post() self.set_format(the_post.get_format(self)) version = the_post.get_device_version(self) name = the_post.get_name(self) url = the_post.get_url(self) instance = LogicAddDeviceVersion() result = instance.add_device_version(version, name, url) return self.response(result)
def post(self): the_post = Post() self.set_format(the_post.get_format(self)) user_id = the_post.get_friend_id(self) base_url = the_post.get_base_url(self) instance = LogicGetMapPositions() result = instance.get(user_id, base_url) return self.response(result)
def post(self): the_request = Post() self.set_format(the_request.get_format(self)) data = self.request.body instance = LogicTestAddRssi() # OHHOLog.print_log(data) result = instance.add(data) return self.response(result)
def post(self): params = Post() self.set_format(params.get_format(self)) cellphone = params.get_cellphone_number(self) country_code = params.get_cellphone_country_code(self) instance = LogicExistCellphone() result = instance.exist(country_code, cellphone) return self.response(result)
def post(self): the_post = Post() self.set_format(the_post.get_format(self)) user_id = the_post.get_user_id(self) name = the_post.get_name(self) condition_dict = the_post.get_match_condition(self) instance = LogicAddMatchCondition() result = instance.add(user_id, name, condition_dict) return self.response(result)
def post(self): the_post = Post() self.set_format(the_post.get_format(self)) identity_id = the_post.get_device_identity_id(self) mac_address = the_post.get_device_mac_address(self) instance = LogicIsDeviceValid() result = instance.is_device_valid(identity_id, mac_address) return self.response(result)
def post(self): the_post = Post() self.set_format(the_post.get_format(self)) user_id = the_post.get_user_id(self) base_url = the_post.get_base_url(self) instance = LogicListBlacks() result = instance.list_blacks(user_id, base_url) return self.response(result)
def post(self): the_post = Post() self.set_format(the_post.get_format(self)) user_id = int(the_post.get_user_id(self)) friend_id = int(the_post.get_friend_id(self)) base_url = the_post.get_base_url(self) apply_id = the_post.get_apply_id(self) instance = LogicAgreeMeet() result = instance.agree_meet(user_id, friend_id, apply_id, base_url) return self.response(result)
def post(self): the_post = Post() self.set_format(the_post.get_format(self)) user_id = the_post.get_user_id(self) friend_user_id = the_post.get_friend_id(self) black = LogicAddBlack() result = black.add_black(user_id, friend_user_id) return self.response(result)