diff --git a/src/bk-user/bkuser/apis/login/serializers.py b/src/bk-user/bkuser/apis/login/serializers.py index 19891d21a..aec6636cf 100644 --- a/src/bk-user/bkuser/apis/login/serializers.py +++ b/src/bk-user/bkuser/apis/login/serializers.py @@ -24,7 +24,7 @@ class LocalUserCredentialAuthenticateInputSLZ(serializers.Serializer): class LocalUserCredentialAuthenticateOutputSLZ(serializers.Serializer): data_source_id = serializers.IntegerField(help_text="数据源ID") - id = serializers.IntegerField(help_text="用户ID") + id = serializers.IntegerField(help_text="用户 ID", source="user_id") username = serializers.CharField(help_text="用户名")