File size: 4,827 Bytes
b4f2238
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
"""
跨模块接口定义
通过接口解耦模块间的直接依赖
"""

from __future__ import annotations

# Document DTOs
# Contract DTOs
# Case DTOs
# DTOs
from apps.core.dto import (
    AccountCredentialDTO,
    CaseDTO,
    CasePartyDTO,
    CaseSearchResultDTO,
    CaseTemplateBindingDTO,
    ClientDTO,
    ClientIdentityDocDTO,
    ContractDTO,
    ConversationHistoryDTO,
    CourtPleadingSignalsDTO,
    DocumentTemplateDTO,
    EvidenceItemDigestDTO,
    GenerationTaskDTO,
    LawFirmDTO,
    LawyerDTO,
    LoginAttemptResult,
    PartyRoleDTO,
    PropertyClueDTO,
    ReminderDTO,
    ReminderTypeDTO,
    SupplementaryAgreementDTO,
    TeamDTO,
    TokenAcquisitionResult,
)

# Case Extended Protocols
# Document Generation Protocols
# Common Protocols (跨模块依赖所需)
# Organization Protocols
# Automation Protocols
# Document Protocols
# Contract Protocols
# Case Protocols
from apps.core.protocols import (
    IAccountSelectionStrategy,
    IAutoLoginService,
    IAutomationService,
    IAutoNamerService,
    IAutoTokenAcquisitionService,
    IBaoquanTokenService,
    IBrowserService,
    IBusinessConfigService,
    ICaptchaService,
    ICaseAssignmentService,
    ICaseChatService,
    ICaseFilingNumberService,
    ICaseLogService,
    ICaseMaterialService,
    ICaseNumberService,
    ICaseSearchService,
    ICaseService,
    ICauseCourtQueryService,
    IClientService,
    IContractAssignmentQueryService,
    IContractFolderBindingService,
    IContractGenerationService,
    IContractPaymentService,
    IContractService,
    IConversationHistoryService,
    ICourtDocumentRecognitionService,
    ICourtDocumentService,
    ICourtPleadingSignalsService,
    ICourtSMSService,
    ICourtTokenStoreService,
    IDocumentProcessingService,
    IDocumentService,
    IDocumentTemplateBindingService,
    IEvidenceListPlaceholderService,
    IEvidenceQueryService,
    IGenerationTaskService,
    ILawFirmService,
    ILawyerService,
    ILitigationFeeCalculatorService,
    ILLMService,
    IMonitorService,
    IOcrService,
    IOrganizationService,
    IPerformanceMonitorService,
    IPermissionService,
    IPreservationQuoteService,
    IReminderService,
    ISecurityService,
    ISupplementaryAgreementGenerationService,
    ISystemConfigService,
    ITokenService,
    IValidatorService,
)

# Service Locator and Event Bus
from .service_locator import EventBus, Events, ServiceLocator

__all__ = [
    # DTOs
    "LoginAttemptResult",
    "TokenAcquisitionResult",
    "AccountCredentialDTO",
    "LawyerDTO",
    "LawFirmDTO",
    "TeamDTO",
    "ClientDTO",
    "ClientIdentityDocDTO",
    "PropertyClueDTO",
    "ContractDTO",
    "CaseDTO",
    "ConversationHistoryDTO",
    "ReminderDTO",
    "ReminderTypeDTO",
    # Case DTOs
    "CaseSearchResultDTO",
    "CaseTemplateBindingDTO",
    "CasePartyDTO",
    # Contract DTOs
    "PartyRoleDTO",
    "SupplementaryAgreementDTO",
    # Document DTOs
    "DocumentTemplateDTO",
    "EvidenceItemDigestDTO",
    "GenerationTaskDTO",
    # Automation DTOs
    "CourtPleadingSignalsDTO",
    # Case Protocols
    "ICaseService",
    "ICaseSearchService",
    "ICaseLogService",
    "ICaseNumberService",
    "ICaseFilingNumberService",
    "ILitigationFeeCalculatorService",
    "ICaseChatService",
    "ICaseAssignmentService",
    "ICaseMaterialService",
    # Contract Protocols
    "IContractService",
    "IContractAssignmentQueryService",
    "IContractFolderBindingService",
    "IContractPaymentService",
    # Document Protocols
    "ICourtDocumentService",
    "IDocumentProcessingService",
    "IAutoNamerService",
    "ICourtDocumentRecognitionService",
    "IDocumentService",
    "IDocumentTemplateBindingService",
    "IEvidenceQueryService",
    "IGenerationTaskService",
    "IContractGenerationService",
    "ISupplementaryAgreementGenerationService",
    # Automation Protocols
    "IAutoTokenAcquisitionService",
    "IAccountSelectionStrategy",
    "IAutoLoginService",
    "ITokenService",
    "ICourtTokenStoreService",
    "IBaoquanTokenService",
    "IBrowserService",
    "ICaptchaService",
    "IOcrService",
    "IMonitorService",
    "ISecurityService",
    "IValidatorService",
    "IPreservationQuoteService",
    "IAutomationService",
    "ICourtSMSService",
    "ICourtPleadingSignalsService",
    "IPerformanceMonitorService",
    # Organization Protocols
    "IOrganizationService",
    "ILawyerService",
    "ILawFirmService",
    "IClientService",
    "IPermissionService",
    # Common Protocols
    "ISystemConfigService",
    "ICauseCourtQueryService",
    "IBusinessConfigService",
    "IReminderService",
    "ILLMService",
    "IConversationHistoryService",
    "IEvidenceListPlaceholderService",
    # Service Locator and Event Bus
    "ServiceLocator",
    "EventBus",
    "Events",
]