old_contents: from req import RequestHandler
  from req import reqenv
  from req import Service
  
  
  
  class ApiUsersHandler(RequestHandler):
      @reqenv
      def get(self):
          pass
  
  class ApiUserHandler(RequestHandler):
      @reqenv
      def post(self, id):
          args = ['basic_info', 'power']
          meta = self.get_args(args)
          if meta['power']:
              if not self.map_power['user_manage'] in self.account['power']:
                  self.error("Permission Denied")
                  return
              yield from Service.User.post_user_power(id, meta['power'])
              self.success("")
              return
  
  class ApiUserSignHandler(RequestHandler):
      @reqenv
      def post(self, action):
          if action == 'signin':
              pass
          elif action == 'signup':
              pass
          elif action == 'signout':
              pass
          else:
              self.error("404")
  
new_contents: from req import RequestHandler
  from req import reqenv
  from req import Service
  
  
  
  class ApiUsersHandler(RequestHandler):
      @reqenv
      def get(self):
          pass
  
  class ApiUserHandler(RequestHandler):
      @reqenv
      def post(self, id):
          args = ['basic_info', 'power']
          meta = self.get_args(args)
          if meta['power']:
              if self.map_power['user_manage'] not in self.account['power']:
                  self.error("Permission Denied")
                  return
              yield from Service.User.post_user_power(id, meta['power'])
              self.success("")
              return
  
  class ApiUserSignHandler(RequestHandler):
      @reqenv
      def post(self, action):
          if action == 'signin':
              pass
          elif action == 'signup':
              pass
          elif action == 'signout':
              pass
          else:
              self.error("404")
  
subject: Update user.py