Skip to content

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

@Ruffianjiang

Description

@Ruffianjiang

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions