封装响应

def finalize_response(self, request, response, *args, **kwargs):
        """封装响应"""
        if not isinstance(response, HttpResponseBase):
            response = SimpleResponse(self.resp_ok(response))
        super_instance = super(ViewMixin, self)
        if hasattr(super_instance, 'finalize_response'):
            return super_instance.finalize_response(request, response, *args, **kwargs)