code: def p_user_add_link(self):
          '''
          user add link.
          '''
          if self.check_post_role()['ADD']:
              pass
          else:
              return False
          post_data = self.get_post_data()
  
          post_data['user_name'] = self.get_current_user()
  
          cur_uid = tools.get_uudd(2)
          while MLink.get_by_uid(cur_uid):
              cur_uid = tools.get_uudd(2)
  
          if MLink.create_link(cur_uid, post_data):
              output = {
                  'addinfo ': 1,
              }
          else:
              output = {
                  'addinfo ': 0,
              }
          return json.dump(output, selff p_user_add_link(self):
          '''
          user add link.
          '''
          if self.check_post_role()['ADD']:
              pass
          else:
              return False
          post_data = self.get_post_data()
  
          post_data['user_name'] = self.get_current_user()
  
          cur_uid = tools.get_uudd(2)
          while MLink.get_by_uid(cur_uid):
              cur_uid = tools.get_uudd(2)
  
          if MLink.create_link(cur_uid, post_data):
              output = {
                  'addinfo ': 1,
              }
          else:
              output = {
                  'addinfo ': 0,
              }
          return json.dump(output, self)
docs: user add link.