app/controllers/unirer/dosser/concerns/resource_representation.rb
# 400 bad request - blank parameter
400 bad request - blank parameter
400 bad request - blank parameter
def render_blank_parameter(parameter_name)
      result = {
        success:    false,
        code:       self.class::CODE_FAILURE_WRONG_PARAMETER,
        message:    "#{parameter_name}参数不能为空。",
        collection: [],
        size:       0,
        errors:     { parameter_name => [ '不能为空' ] }
      }
      respond_result :bad_request, result
    end
def render_blank_parameter ( parameter_name ) result = { success : false , code : self . class :: CODE_FAILURE_WRONG_PARAMETER , message : "#{parameter_name}参数不能为空。", collection : [ ] , size : 0 , errors : { parameter_name => [ '不能为空' ] } } respond_result :bad_request , result end
400 bad request - blank parameter
400 bad request - blank parameter
parameter_name
<not_specific>