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

fix-management-useractionlogs #57

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 6 additions & 9 deletions src/main/java/cn/authing/sdk/java/dto/GetUserActionLogsDto.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
package cn.authing.sdk.java.dto;

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;

import cn.authing.sdk.java.dto.ListWebhooksDto;

public class GetUserActionLogsDto {
/**
* 请求 ID
Expand Down Expand Up @@ -35,12 +32,12 @@ public class GetUserActionLogsDto {
* 开始时间戳
*/
@JsonProperty("start")
private Integer start;
private Long start;
/**
* 结束时间戳
*/
@JsonProperty("end")
private Integer end;
private Long end;
/**
* 请求是否成功
*/
Expand Down Expand Up @@ -87,17 +84,17 @@ public void setAppId(String appId) {
this.appId = appId;
}

public Integer getStart() {
public Long getStart() {
return start;
}
public void setStart(Integer start) {
public void setStart(Long start) {
this.start = start;
}

public Integer getEnd() {
public Long getEnd() {
return end;
}
public void setEnd(Integer end) {
public void setEnd(Long end) {
this.end = end;
}

Expand Down
40 changes: 18 additions & 22 deletions src/main/java/cn/authing/sdk/java/dto/UserActionLogDto.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
package cn.authing.sdk.java.dto;

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;

import cn.authing.sdk.java.dto.GeoIp;
import cn.authing.sdk.java.dto.ParsedUserAgent;

public class UserActionLogDto {
/**
* 用户 ID
Expand Down Expand Up @@ -252,58 +248,58 @@ public void setRequestId(String requestId) {
*/
public static enum EventType {

@JsonProperty("login")
@JsonProperty("登录")
LOGIN("login"),

@JsonProperty("logout")
@JsonProperty("登出")
LOGOUT("logout"),

@JsonProperty("register")
@JsonProperty("注册")
REGISTER("register"),

@JsonProperty("verifyMfa")
@JsonProperty("验证 MFA")
VERIFY_MFA("verifyMfa"),

@JsonProperty("updateUserPrefile")
UPDATE_USER_PREFILE("updateUserPrefile"),
@JsonProperty("修改用户信息")
UPDATE_USER_PROFILE("updateUserProfile"),

@JsonProperty("updateUserPassword")
@JsonProperty("修改密码")
UPDATE_USER_PASSWORD("updateUserPassword"),

@JsonProperty("updateUserEmail")
@JsonProperty("修改邮箱")
UPDATE_USER_EMAIL("updateUserEmail"),

@JsonProperty("updateUserPhone")
@JsonProperty("修改手机号")
UPDATE_USER_PHONE("updateUserPhone"),

@JsonProperty("bindMfa")
@JsonProperty("绑定 MFA")
BIND_MFA("bindMfa"),

@JsonProperty("bindEmail")
@JsonProperty("绑定邮箱")
BIND_EMAIL("bindEmail"),

@JsonProperty("bindPhone")
@JsonProperty("绑定手机号")
BIND_PHONE("bindPhone"),

@JsonProperty("unbindPhone")
@JsonProperty("解绑手机号")
UNBIND_PHONE("unbindPhone"),

@JsonProperty("unbindEmail")
@JsonProperty("解绑邮箱")
UNBIND_EMAIL("unbindEmail"),

@JsonProperty("unbindMFA")
@JsonProperty("解绑 MFA")
UNBIND_MFA("unbindMFA"),

@JsonProperty("refreshUserTokenBySelf")
REFRESH_USER_TOKEN_BY_SELF("refreshUserTokenBySelf"),

@JsonProperty("deleteAccount")
@JsonProperty("注销账号")
DELETE_ACCOUNT("deleteAccount"),

@JsonProperty("verifyFirstLogin")
@JsonProperty("首次登录验证")
VERIFY_FIRST_LOGIN("verifyFirstLogin"),

@JsonProperty("securityResourceAccess")
@JsonProperty("资源访问")
SECURITY_RESOURCE_ACCESS("securityResourceAccess"),
;

Expand Down