code: 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)
docs: 封装响应