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

Bug: UserActionLogRespDto中的eventType类型有误 #64

Open
Ruffianjiang opened this issue Aug 5, 2024 · 0 comments
Open

Bug: UserActionLogRespDto中的eventType类型有误 #64

Ruffianjiang opened this issue Aug 5, 2024 · 0 comments

Comments

@Ruffianjiang
Copy link

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类型为英文枚举

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

No branches or pull requests

1 participant