Skip to content

Commit

Permalink
fix: apis of tenant only support real data source
Browse files Browse the repository at this point in the history
  • Loading branch information
rolin999 committed Jan 21, 2025
1 parent d56cb7b commit 554a58c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions src/bk-user/bkuser/apis/open_v3/views/department.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ class TenantDepartmentRetrieveApi(OpenApiCommonMixin, generics.RetrieveAPIView):
获取部门信息(支持是否包括祖先部门)
"""

serializer_class = TenantDepartmentRetrieveOutputSLZ

@swagger_auto_schema(
tags=["open_v3.department"],
operation_id="retrieve_department",
Expand Down
6 changes: 0 additions & 6 deletions src/bk-user/bkuser/apis/open_v3/views/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,6 @@ class TenantUserRetrieveApi(OpenApiCommonMixin, generics.RetrieveAPIView):
根据用户 bk_username 获取用户信息
"""

queryset = TenantUser.objects.all()
lookup_url_kwarg = "id"
serializer_class = TenantUserRetrieveOutputSLZ

@swagger_auto_schema(
tags=["open_v3.user"],
operation_id="retrieve_user",
Expand All @@ -115,8 +111,6 @@ class TenantUserDepartmentListApi(OpenApiCommonMixin, generics.ListAPIView):

pagination_class = None

serializer_class = TenantUserDepartmentListOutputSLZ

@swagger_auto_schema(
tags=["open_v3.user"],
operation_id="list_user_department",
Expand Down

0 comments on commit 554a58c

Please sign in to comment.