init code
This commit is contained in:
26
app/models.py
Normal file
26
app/models.py
Normal file
@@ -0,0 +1,26 @@
|
||||
from typing import TypedDict, List
|
||||
|
||||
|
||||
class RequirementAnalysis(TypedDict):
|
||||
"""需求分析结果"""
|
||||
functional_requirements: List[str]
|
||||
non_functional_requirements: List[str]
|
||||
acceptance_criteria: List[str]
|
||||
edge_cases: List[str]
|
||||
summary: str
|
||||
|
||||
|
||||
class TestCaseResult(TypedDict):
|
||||
"""测试用例结果"""
|
||||
test_cases: List[dict]
|
||||
test_strategy: str
|
||||
coverage_plan: str
|
||||
|
||||
|
||||
class CodeGenerationResult(TypedDict):
|
||||
"""代码生成结果"""
|
||||
java_code: str
|
||||
unit_tests: str
|
||||
implementation_notes: str
|
||||
unit_tests_count: str
|
||||
passed_tests_count: str
|
||||
Reference in New Issue
Block a user