From 2b9402d5fc0784d2585b86802a63e5aa1d483b8c Mon Sep 17 00:00:00 2001 From: FcAYH Date: Fri, 1 Aug 2025 15:15:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B0=86=20department=5Fid=20=E7=9A=84?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E6=A0=87=E6=B3=A8=E7=94=B1=20int=20=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=20str?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/contact/v3/model/children_department_request.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lark_oapi/api/contact/v3/model/children_department_request.py b/lark_oapi/api/contact/v3/model/children_department_request.py index 22888b9ae..90144436c 100644 --- a/lark_oapi/api/contact/v3/model/children_department_request.py +++ b/lark_oapi/api/contact/v3/model/children_department_request.py @@ -13,7 +13,7 @@ def __init__(self) -> None: self.fetch_child: Optional[bool] = None self.page_size: Optional[int] = None self.page_token: Optional[str] = None - self.department_id: Optional[int] = None + self.department_id: Optional[str] = None @staticmethod def builder() -> "ChildrenDepartmentRequestBuilder": @@ -54,9 +54,9 @@ def page_token(self, page_token: str) -> "ChildrenDepartmentRequestBuilder": self._children_department_request.add_query("page_token", page_token) return self - def department_id(self, department_id: int) -> "ChildrenDepartmentRequestBuilder": + def department_id(self, department_id: str) -> "ChildrenDepartmentRequestBuilder": self._children_department_request.department_id = department_id - self._children_department_request.paths["department_id"] = str(department_id) + self._children_department_request.paths["department_id"] = department_id return self def build(self) -> ChildrenDepartmentRequest: