Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 操作审计 API #1584

Merged
merged 8 commits into from
Sep 12, 2024
Merged

feat: 操作审计 API #1584

merged 8 commits into from
Sep 12, 2024

Conversation

jiayuan929
Copy link
Collaborator

No description provided.

@jiayuan929 jiayuan929 requested a review from narasux September 5, 2024 12:54
@@ -25,12 +26,34 @@ class AppOperationRecordSLZ(serializers.ModelSerializer):
at = serializers.DateTimeField(format="%Y-%m-%d %H:%M:%S", source="created")
operate = serializers.ReadOnlyField(source="get_display_text", help_text="操作名称")
operator = serializers.ReadOnlyField(source="username", read_only=True)
detail_type = serializers.SerializerMethodField()

def get_detail_type(self, obj) -> str:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

obj 添加一些类型注解

@jiayuan929 jiayuan929 merged commit 1cbe3bd into TencentBlueKing:main Sep 12, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants