def create(self, request, *args, **kwargs):
    serializer = self.get_serializer(data=request.data, request=request)
    serializer.is_valid(raise_exception=True)
    self.perform_create(serializer)
    headers = self.get_success_headers(serializer.data)
    return SuccessResponse(data=serializer.data, msg='新增成功')
def create(self, request, *args, **kwargs):
    serializer = self.get_serializer(data=request.data, request=request)
    serializer.is_valid(raise_exception=True)
    self.perform_create(serializer)
    headers = self.get_success_headers(serializer.data)
    return SuccessResponse(data=serializer.data, msg='新增成功')