def get(self):
        the_post = Get()
        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 get(self):
        the_request = Get()
        self.set_format(the_request.get_format(self))
        user_id = the_request.get_user_id(self)
        base_url = the_request.get_base_url(self)

        user = User()
        data = user.get_basic_user_information(user_id, base_url)

        result = Result.result_success()
        result["data"] = data
        return self.response(result)
Exemple #3
0
    def get(self):
        # name = self.get_body_argument("user_name", None)
        the_get = Get()
        result = dict()
        base_url = the_get.get_base_url(self)
        user_id = the_get.get_user_id(self)
        friend_user_id = the_get.get_friend_id(self)
        user = User()
        friend_user_id2 = user_id if user_id else 4
        user_id = 4
        friend_user_id = friend_user_id if friend_user_id else 13

        log_string = "1234567890"
        OHHOLog.print_log(log_string)
        # message = user.get_user_basic_information(user_id, base_url)
        for i in range(100):
            OHHOLog.print_log(user.push(str(i), friend_user_id, user_id))
            OHHOLog.print_log(user.push(str(i), friend_user_id2, user_id))
        # return Result.result_success()

        self.write(OHHOOperation.dict2json(Result.result_success()))