aiteamutils 0.2.104__py3-none-any.whl → 0.2.106__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_repository.py +2 -2
- aiteamutils/base_service.py +2 -2
- aiteamutils/database.py +4 -4
- aiteamutils/version.py +1 -1
- {aiteamutils-0.2.104.dist-info → aiteamutils-0.2.106.dist-info}/METADATA +1 -1
- {aiteamutils-0.2.104.dist-info → aiteamutils-0.2.106.dist-info}/RECORD +7 -7
- {aiteamutils-0.2.104.dist-info → aiteamutils-0.2.106.dist-info}/WHEEL +0 -0
aiteamutils/base_repository.py
CHANGED
@@ -63,7 +63,7 @@ class BaseRepository(Generic[ModelType]):
|
|
63
63
|
|
64
64
|
async def update(
|
65
65
|
self,
|
66
|
-
|
66
|
+
entity_data: Dict[str, Any],
|
67
67
|
conditions: Dict[str, Any],
|
68
68
|
exclude_entities: List[str] | None = None
|
69
69
|
) -> ModelType:
|
@@ -71,7 +71,7 @@ class BaseRepository(Generic[ModelType]):
|
|
71
71
|
return await update_entity(
|
72
72
|
session=self.session,
|
73
73
|
model=self.model,
|
74
|
-
|
74
|
+
entity_data=entity_data,
|
75
75
|
conditions=conditions,
|
76
76
|
exclude_entities=exclude_entities
|
77
77
|
)
|
aiteamutils/base_service.py
CHANGED
@@ -98,7 +98,7 @@ class BaseService(Generic[ModelType]):
|
|
98
98
|
self,
|
99
99
|
request: Request,
|
100
100
|
ulid: str | None = None,
|
101
|
-
|
101
|
+
entity_data: Dict[str, Any] | None = None,
|
102
102
|
conditions: Dict[str, Any] | None = None,
|
103
103
|
unique_check: List[Dict[str, Any]] | None = None,
|
104
104
|
exclude_entities: List[str] | None = None,
|
@@ -132,7 +132,7 @@ class BaseService(Generic[ModelType]):
|
|
132
132
|
conditions = {"ulid": ulid}
|
133
133
|
|
134
134
|
result = await self.repository.update(
|
135
|
-
|
135
|
+
entity_data=entity_data,
|
136
136
|
conditions=conditions,
|
137
137
|
exclude_entities=exclude_entities
|
138
138
|
)
|
aiteamutils/database.py
CHANGED
@@ -298,7 +298,7 @@ async def update_entity(
|
|
298
298
|
session: AsyncSession,
|
299
299
|
model: Type[ModelType],
|
300
300
|
conditions: Dict[str, Any],
|
301
|
-
|
301
|
+
entity_data: Dict[str, Any],
|
302
302
|
exclude_entities: List[str] | None = None
|
303
303
|
) -> ModelType:
|
304
304
|
"""
|
@@ -309,8 +309,8 @@ async def update_entity(
|
|
309
309
|
model (Type[ModelType]): 업데이트할 모델 클래스
|
310
310
|
conditions (Dict[str, Any]): 엔티티 조회 조건
|
311
311
|
conditions = {"user_id": 1, "status": "active"}
|
312
|
-
|
313
|
-
|
312
|
+
entity_data (Dict[str, Any]): 업데이트할 데이터
|
313
|
+
entity_data = {"status": "inactive"}
|
314
314
|
Returns:
|
315
315
|
ModelType: 업데이트된 엔티티
|
316
316
|
|
@@ -342,7 +342,7 @@ async def update_entity(
|
|
342
342
|
# 데이터 병합 및 전처리
|
343
343
|
processed_data = process_entity_data(
|
344
344
|
model=model,
|
345
|
-
entity_data=
|
345
|
+
entity_data=entity_data,
|
346
346
|
existing_data=existing_data,
|
347
347
|
exclude_entities=exclude_entities
|
348
348
|
)
|
aiteamutils/version.py
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
"""버전 정보"""
|
2
|
-
__version__ = "0.2.
|
2
|
+
__version__ = "0.2.106"
|
@@ -1,15 +1,15 @@
|
|
1
1
|
aiteamutils/__init__.py,sha256=kRBpRjark0M8ZwFfmKiMFol6CbIILN3WE4f6_P6iIq0,1089
|
2
2
|
aiteamutils/base_model.py,sha256=Y__fWJaB8kCyMQLnj88iQVanTdwwJcog13eOdGFlsN8,3129
|
3
|
-
aiteamutils/base_repository.py,sha256=
|
4
|
-
aiteamutils/base_service.py,sha256=
|
3
|
+
aiteamutils/base_repository.py,sha256=vzBw3g3jCJetTDblZvZenEGXk89Qu_65_02C7QTcf8Q,4615
|
4
|
+
aiteamutils/base_service.py,sha256=nHikjwGp29QrQPr2W8Ye9sKxmVS_8prRG3Nu42TU1Ms,10670
|
5
5
|
aiteamutils/cache.py,sha256=07xBGlgAwOTAdY5mnMOQJ5EBxVwe8glVD7DkGEkxCtw,1373
|
6
6
|
aiteamutils/config.py,sha256=YdalpJb70-txhGJAS4aaKglEZAFVWgfzw5BXSWpkUz4,3232
|
7
|
-
aiteamutils/database.py,sha256=
|
7
|
+
aiteamutils/database.py,sha256=SmE6JiyQoqCNlrV4AVxrp1tsrNryyZSQWJM0dHN4MQA,19696
|
8
8
|
aiteamutils/enums.py,sha256=7WLqlcJqQWtETAga2WAxNp3dJTQIAd2TW-4WzkoHHa8,2498
|
9
9
|
aiteamutils/exceptions.py,sha256=wls-R8qbD7fWzEgDDY1Eiy1vXl59R5IsCXTRkZpBiGU,16021
|
10
10
|
aiteamutils/security.py,sha256=McUl3t5Z5SyUDVUHymHdDkYyF4YSeg4g9fFMML4W6Kw,11630
|
11
11
|
aiteamutils/validators.py,sha256=PvI9hbMEAqTawgxPbiWRyx2r9yTUrpNBQs1AD3w4F2U,7726
|
12
|
-
aiteamutils/version.py,sha256=
|
13
|
-
aiteamutils-0.2.
|
14
|
-
aiteamutils-0.2.
|
15
|
-
aiteamutils-0.2.
|
12
|
+
aiteamutils/version.py,sha256=LYkntO18eSYG8LRvoQuF6AtPWBuf07skE-hJ2qSTmlg,43
|
13
|
+
aiteamutils-0.2.106.dist-info/METADATA,sha256=S_aC6vBlHurbIXGznM4mfpROpWwK4Yhk-jSJ20TJHWI,1719
|
14
|
+
aiteamutils-0.2.106.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
15
|
+
aiteamutils-0.2.106.dist-info/RECORD,,
|
File without changes
|