def METHOD_NAME(self):
    if self.action in ['list', 'retrieve', 'destroy']:
        return serializers.GoodsoriginGetSerializer
    elif self.action in ['create']:
        return serializers.GoodsoriginPostSerializer
    elif self.action in ['update']:
        return serializers.GoodsoriginUpdateSerializer
    elif self.action in ['partial_update']:
        return serializers.GoodsoriginPartialUpdateSerializer
    else:
        return self.http_method_not_allowed(request=self.request)