py
Some checks failed
API接口参数变更检测 / api-param-check (push) Has been cancelled

This commit is contained in:
2026-06-04 17:14:24 +08:00
parent e72c9e81de
commit 2fdd7ec2cc
2 changed files with 21 additions and 11 deletions

View File

@@ -83,6 +83,7 @@ class EndpointChangeReport:
http_method: str
controller_class: str
method_name: str
source_file: str = ""
parameter_changes: List[ParameterChange] = field(default_factory=list)
is_new_endpoint: bool = False
is_removed_endpoint: bool = False
@@ -257,6 +258,7 @@ def compare_endpoints(
http_method=a_ep.http_method,
controller_class=a_ep.controller_class,
method_name=a_ep.method_name,
source_file=a_ep.source_file,
is_renamed_endpoint=True,
old_uri=r_ep.uri,
)
@@ -274,6 +276,7 @@ def compare_endpoints(
http_method=ep.http_method,
controller_class=ep.controller_class,
method_name=ep.method_name,
source_file=ep.source_file,
is_removed_endpoint=True,
)
)
@@ -287,6 +290,7 @@ def compare_endpoints(
http_method=ep.http_method,
controller_class=ep.controller_class,
method_name=ep.method_name,
source_file=ep.source_file,
is_new_endpoint=True,
parameter_changes=[
ParameterChange(
@@ -312,6 +316,7 @@ def compare_endpoints(
http_method=new_ep.http_method,
controller_class=new_ep.controller_class,
method_name=new_ep.method_name,
source_file=new_ep.source_file,
parameter_changes=param_changes,
)
)