feat: pdf generation using product barcode images
This commit is contained in:
@@ -9,6 +9,10 @@ class BaseImagesUploader:
|
||||
def get_url(self, filename: str) -> bytes:
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def get_abs_path(self, filename: str) -> bytes:
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def delete(self, filename: str):
|
||||
pass
|
||||
|
||||
@@ -20,6 +20,10 @@ class BarcodeImagesUploader(BaseImagesUploader):
|
||||
file_location = self.relative_path / filename
|
||||
return f"{API_ROOT}/{file_location}"
|
||||
|
||||
def get_abs_path(self, filename: str) -> str:
|
||||
file_location = self.storage_path / filename
|
||||
return file_location
|
||||
|
||||
def delete(self, filename: str):
|
||||
file_location = self.storage_path / filename
|
||||
if file_location.exists():
|
||||
|
||||
Reference in New Issue
Block a user