aiteamutils 0.2.161__py3-none-any.whl → 0.2.162__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- aiteamutils/base_model.py +5 -5
- aiteamutils/exceptions.py +6 -0
- aiteamutils/version.py +1 -1
- {aiteamutils-0.2.161.dist-info → aiteamutils-0.2.162.dist-info}/METADATA +1 -1
- {aiteamutils-0.2.161.dist-info → aiteamutils-0.2.162.dist-info}/RECORD +6 -7
- aiteamutils/models.py +0 -1
- {aiteamutils-0.2.161.dist-info → aiteamutils-0.2.162.dist-info}/WHEEL +0 -0
aiteamutils/base_model.py
CHANGED
@@ -126,25 +126,25 @@ class BaseFileModel(BaseColumn):
|
|
126
126
|
)
|
127
127
|
mime_type: Mapped[str] = mapped_column(
|
128
128
|
String,
|
129
|
-
nullable=
|
129
|
+
nullable=True,
|
130
130
|
doc="MIME 타입"
|
131
131
|
)
|
132
132
|
mime_type_main: Mapped[str] = mapped_column(
|
133
133
|
String,
|
134
|
-
nullable=
|
134
|
+
nullable=True,
|
135
135
|
doc="MIME 타입 주 분류 (예: image, video, application 등)"
|
136
136
|
)
|
137
137
|
mime_type_sub: Mapped[str] = mapped_column(
|
138
138
|
String,
|
139
|
-
nullable=
|
139
|
+
nullable=True,
|
140
140
|
doc="MIME 타입 부 분류 (예: jpeg, mp4, pdf 등)"
|
141
141
|
)
|
142
142
|
size: Mapped[int] = mapped_column(
|
143
|
-
nullable=
|
143
|
+
nullable=True,
|
144
144
|
doc="파일 크기(bytes)"
|
145
145
|
)
|
146
146
|
checksum: Mapped[str] = mapped_column(
|
147
147
|
String,
|
148
|
-
nullable=
|
148
|
+
nullable=True,
|
149
149
|
doc="파일 체크섬"
|
150
150
|
)
|
aiteamutils/exceptions.py
CHANGED
@@ -77,6 +77,12 @@ class ErrorCode(Enum):
|
|
77
77
|
TOKEN_ERROR = ErrorResponse(5005, "TOKEN_ERROR", 401, "토큰 오류")
|
78
78
|
DELETE_ERROR = ErrorResponse(5006, "DELETE_ERROR", 400, "삭제 오류")
|
79
79
|
|
80
|
+
# File 관련 에러: 6000번대
|
81
|
+
FILE_NOT_FOUND = ErrorResponse(6001, "FILE_NOT_FOUND", 404, "파일을 찾을 수 없습니다")
|
82
|
+
FILE_UPLOAD_ERROR = ErrorResponse(6002, "FILE_UPLOAD_ERROR", 500, "파일 업로드 오류")
|
83
|
+
FILE_DOWNLOAD_ERROR = ErrorResponse(6003, "FILE_DOWNLOAD_ERROR", 500, "파일 다운로드 오류")
|
84
|
+
FILE_DELETE_ERROR = ErrorResponse(6004, "FILE_DELETE_ERROR", 500, "파일 삭제 오류")
|
85
|
+
FILE_PROCESSING_ERROR = ErrorResponse(6005, "FILE_PROCESSING_ERROR", 500, "파일 처리 오류")
|
80
86
|
|
81
87
|
class CustomException(Exception):
|
82
88
|
"""사용자 정의 예외 클래스"""
|
aiteamutils/version.py
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
"""버전 정보"""
|
2
|
-
__version__ = "0.2.
|
2
|
+
__version__ = "0.2.162"
|
@@ -1,17 +1,16 @@
|
|
1
1
|
aiteamutils/__init__.py,sha256=kRBpRjark0M8ZwFfmKiMFol6CbIILN3WE4f6_P6iIq0,1089
|
2
|
-
aiteamutils/base_model.py,sha256=
|
2
|
+
aiteamutils/base_model.py,sha256=Jw5Fyfrtdc_jyg-LmC35c-D6w3-2_dh2CBeiKjM9GPE,4497
|
3
3
|
aiteamutils/base_repository.py,sha256=Oy2zE1i5qx60Xf1tnsaKLyFWapiPqt5JH8NejwNrPWg,4647
|
4
4
|
aiteamutils/base_service.py,sha256=JIeRtFn1Ll4Qcq3v88pgS9lmEQLQoVyyOKqYR8n02S4,21192
|
5
5
|
aiteamutils/cache.py,sha256=07xBGlgAwOTAdY5mnMOQJ5EBxVwe8glVD7DkGEkxCtw,1373
|
6
6
|
aiteamutils/config.py,sha256=YdalpJb70-txhGJAS4aaKglEZAFVWgfzw5BXSWpkUz4,3232
|
7
7
|
aiteamutils/database.py,sha256=msvBKtxWeQVOo0v2Q9i2azuTNtnUItuNNar52gdRZTo,20418
|
8
8
|
aiteamutils/enums.py,sha256=7WLqlcJqQWtETAga2WAxNp3dJTQIAd2TW-4WzkoHHa8,2498
|
9
|
-
aiteamutils/exceptions.py,sha256=
|
9
|
+
aiteamutils/exceptions.py,sha256=sgIVulllKMM9InTltaB7VD6i7DiQvCoycexsV-BiIBY,16570
|
10
10
|
aiteamutils/files.py,sha256=fxnCu9rErd4vCovMi0jy4adLUiA7rx_q4RdOL4wSgsU,14258
|
11
|
-
aiteamutils/models.py,sha256=Nqnn8clbgv-5l0PgxcTOldg8mkMKrFn4TvPL-rYUUGg,1
|
12
11
|
aiteamutils/security.py,sha256=McUl3t5Z5SyUDVUHymHdDkYyF4YSeg4g9fFMML4W6Kw,11630
|
13
12
|
aiteamutils/validators.py,sha256=_WHN6jqJQzKM5uPTg-Da8U2qqevS84XeKMkCCF4C_lY,9591
|
14
|
-
aiteamutils/version.py,sha256=
|
15
|
-
aiteamutils-0.2.
|
16
|
-
aiteamutils-0.2.
|
17
|
-
aiteamutils-0.2.
|
13
|
+
aiteamutils/version.py,sha256=vAvqE9V77cH7vOSwbqingOdyP4KA12olJ1Dj_9Br2jQ,43
|
14
|
+
aiteamutils-0.2.162.dist-info/METADATA,sha256=LS01DV_fpROE_i2VnNwkeRx0KQ82VBeRAi4XveycukA,1743
|
15
|
+
aiteamutils-0.2.162.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
16
|
+
aiteamutils-0.2.162.dist-info/RECORD,,
|
aiteamutils/models.py
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
|
File without changes
|