Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Bug: UserActionLogRespDto中的eventType类型有误

Open
#64 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
java
Domain
api

Research direction

Start at the UserActionLogRespDto class and inspect the eventType field and its EventType type. Reproduce the response through client.getUserActionLogs(reqDto), then compare the DTO mapping with the shown response. Done means the returned eventType value is represented consistently with the API response and the expected behavior.

Written by the indexing model from the issue text.

Description

Description

获取用户行为日志接口的返回类型UserActionLogRespDto.class中的字段eventType为枚举类,和接口返回值对不上。接口返回汉字

    /**
     * 事件类型:
     * - `login`: 登录
     * - `logout`: 登出
     * - `register`: 注册
     * - `verifyMfa`: 验证 MFA
     * - `updateUserProfile`: 修改用户信息
     * - `updateUserPassword`: 修改密码
     * - `updateUserEmail`: 修改邮箱
     * - `updateUserPhone`: 修改手机号
     * - `bindMfa`: 绑定 MFA
     * - `bindEmail`: 绑定邮箱
     * - `bindPhone`: 绑定手机号
     * - `unbindPhone`: 解绑手机号
     * - `unbindEmail`: 解绑邮箱
     * - `unbindMFA`: 解绑 MFA
     * - `deleteAccount`: 注销账号
     * - `verifyFirstLogin`: 首次登录验证
     *
     */
  @JsonProperty("eventType")
    private EventType eventType;

返回的部分字段

      {
        "userId": "XX",
        "appId": "XX",
        "appName": "XX平台",
        "clientIp": "192.168.XX.XX",
        "eventType": "登录",
        "appLogo": "http://XXX",
        "userAgent": "XX",
        "geoip": {},
        "timestamp": "2024-08-02T16:45:08.848+0800",
        "requestId": "62269d2c-47d5-448e-a8ca-dd89e4d731b9"
      }

Minimal code-snippet showcasing the problem

client.getUserActionLogs(reqDto);
Expected behavior

接口返回枚举类,或者eventType类型改为String

Actual behavior

接口返回中文字符串,eventType类型为英文枚举

Dominant language
Java
Stars
161
Forks
13
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Authing/authing-java-sdk

All issues in Authing/authing-java-sdk

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.