lib/response/success.js
function defaultTransformSuccess(value,options){
    if (options.default === true){
        return {
            status:true,
            data:value
        }
    }
    
    if (options.appendStatus !== false){
        let obj = typeof value == 'object' ? value : {}
        return Object.assign(obj,{status:true})
    }

    return value
}
function defaultTransformSuccess(value,options){
    if (options.default === true){
        return {
            status:true,
            data:value
        }
    }
    
    if (options.appendStatus !== false){
        let obj = typeof value == 'object' ? value : {}
        return Object.assign(obj,{status:true})
    }

    return value
}
function defaultTransformSuccess ( value , options ) { if ( options . default === true ) { return { status : true , data : value } } if ( options . appendStatus !== false ) { let obj = typeof value == 'object' ? value : { } return Object . assign ( obj , { status : true } ) } return value }
Transform the responseData

@param {any} value
@param {Object} options
@param {Request} req
@returns {Object}
Transform the responseData