Merge pull request #9575 from jumpserver/pr@dev@perf_session_account_id

perf: 会话新增 account_id
pull/9577/head^2
老广 2 years ago committed by GitHub
commit 9cd0a348fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -53,7 +53,7 @@ class _ConnectionTokenAccountSerializer(serializers.ModelSerializer):
class Meta:
model = Account
fields = [
'name', 'username', 'secret_type', 'secret', 'su_from', 'privileged'
'id', 'name', 'username', 'secret_type', 'secret', 'su_from', 'privileged'
]

@ -33,7 +33,7 @@ class SessionSerializer(BulkOrgResourceModelSerializer):
model = Session
fields_mini = ["id"]
fields_small = fields_mini + [
"user", "asset", "user_id", "asset_id", 'account',
"user", "asset", "user_id", "asset_id", 'account', 'account_id',
"protocol", 'type', "login_from", "remote_addr",
"is_success", "is_finished", "has_replay", "has_command",
"date_start", "date_end", "comment"

Loading…
Cancel
Save