Skip to content

Commit

Permalink
refactor: cr调整
Browse files Browse the repository at this point in the history
  • Loading branch information
neronkl committed Dec 12, 2023
1 parent 159c795 commit 7776651
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ class UserSearchInputSLZ(serializers.Serializer):
class DataSourceSearchDepartmentsOutputSLZ(serializers.Serializer):
id = serializers.CharField(help_text="部门ID")
name = serializers.CharField(help_text="部门名称")
organization_path = serializers.CharField(help_text="部门路径")


class UserSearchOutputSLZ(serializers.Serializer):
Expand Down
4 changes: 2 additions & 2 deletions src/bk-user/bkuser/apis/web/data_source_organization/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# 数据源用户所属部门
path(
"users/<int:id>/deparmtents/",
views.DataSourceUserDepartmentListApi.as_view(),
name="data_source_user.retrieve_update",
views.DataSourceUserOrganizationPathListApi.as_view(),
name="data_source_user.organization_path.list",
),
]
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def put(self, request, *args, **kwargs):
return Response(status=status.HTTP_204_NO_CONTENT)


class DataSourceUserDepartmentListApi(generics.ListAPIView):
class DataSourceUserOrganizationPathListApi(generics.ListAPIView):
@swagger_auto_schema(
tags=["data_source"],
operation_description="数据源用户所属部门的部门路径",
Expand Down

0 comments on commit 7776651

Please sign in to comment.