def check_atrribs(attrs, command=nil)
      raise ArgumentError, "user_id missing"   if attrs[:user_id].nil?
      # attribs[:uid] = attribs[:uid].to_s.strip
      attribs = {}
      attrs.each do |k,v|
        attribs[k] = v&.strip     if v.is_a? String
        attribs[k] = v        unless v.is_a? String
      end
      # attribs[:user_id] = attribs[:user_id]&.strip
      # attribs[:user_name] = attribs[:user_name]&.strip
      # attribs[:email] = attribs[:email]&.strip
      raise ArgumentError, "user_id empty"     if attribs[:user_id].empty?
      raise ArgumentError, "user_id has space" if attribs[:user_id].include?(' ')
      if command.eql? :user_add
        raise ArgumentError, " missing user_name" if attribs[:user_name].nil?
        raise ArgumentError, " missing email"     if attribs[:email].nil?
        raise ArgumentError, " missing dept_name" if attribs[:dept_name].nil?
      end
      return attribs
    end
def check_atrribs(attrs, command=nil)
      raise ArgumentError, "user_id missing"   if attrs[:user_id].nil?
      # attribs[:uid] = attribs[:uid].to_s.strip
      attribs = {}
      attrs.each do |k,v|
        attribs[k] = v&.strip     if v.is_a? String
        attribs[k] = v        unless v.is_a? String
      end
      # attribs[:user_id] = attribs[:user_id]&.strip
      # attribs[:user_name] = attribs[:user_name]&.strip
      # attribs[:email] = attribs[:email]&.strip
      raise ArgumentError, "user_id empty"     if attribs[:user_id].empty?
      raise ArgumentError, "user_id has space" if attribs[:user_id].include?(' ')
      if command.eql? :user_add
        raise ArgumentError, " missing user_name" if attribs[:user_name].nil?
        raise ArgumentError, " missing email"     if attribs[:email].nil?
        raise ArgumentError, " missing dept_name" if attribs[:dept_name].nil?
      end
      return attribs
    end
# Be sure Actions have correct user_id data
 
 # @param action [Symbol] the action to be formatted
 # @return [String] this attribute MUST include: { user_id: "userid" }
 def check_user_id(action, attribs)
   # attribs[:uid] = attribs[:uid].to_s.strip
   attribs[:user_id] = attribs[:user_id]&.strip
   answer = send(action, attribs)
   raise ArgumentError, "missing user_id"   if attribs[:user_id].nil? or
                                               attribs[:user_id].empty?
   raise ArgumentError, "user_id has space" if attribs[:user_id].include?(' ')
   return answer
 end
 Be sure Actions have correct user_id data

 @param action [Symbol] the action to be formatted
 @return [String] this attribute MUST include: { user_id: "userid" }