Bug: UserActionLogRespDto中的eventType类型有误
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 45/100
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Authing/authing-java-sdk
-
http日志等级调整 Open
Difficulty 3/5 1-2 days Newbie friendliness 35/100
Authing/authing-java-sdk#53 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
Authing/authing-java-sdk#51 ·
All issues in Authing/authing-java-sdk
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
elastic/gradle-plugins#157 ·
-
enhancement Tools
Difficulty 1/5 Under an hour Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
apache/rocketmq-dashboard#5008 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
DETECT_PARAMETER_NAMES=false silently disables @ConstructorProperties-based Creator detection too Open
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
FasterXML/jackson-databind#6229 ·