diff --git a/src/main/java/com/cisd/tms/modules/auth/dto/AuthUserListItemResponse.java b/src/main/java/com/cisd/tms/modules/auth/dto/AuthUserListItemResponse.java new file mode 100644 index 0000000..ec897fc --- /dev/null +++ b/src/main/java/com/cisd/tms/modules/auth/dto/AuthUserListItemResponse.java @@ -0,0 +1,140 @@ +package com.cisd.tms.modules.auth.dto; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.time.LocalDateTime; + +@Schema(description = "用户管理列表项") +public class AuthUserListItemResponse { + + @Schema(description = "角色编码", example = "SUPER_ADMIN") + private String roleCode; + + @Schema(description = "角色类型名称", example = "超级管理员") + private String roleName; + + @Schema(description = "角色内固定席位编号", example = "1") + private Integer uid; + + @Schema(description = "账号名", example = "super-admin-full-01") + private String username; + + @Schema(description = "用户展示名", example = "超级管理员UKey席位一") + private String displayName; + + @Schema(description = "状态编码", example = "ACTIVE") + private String status; + + @Schema(description = "状态名称", example = "正常") + private String statusName; + + @Schema(description = "最后登录时间") + private LocalDateTime lastLoginAt; + + @Schema(description = "最后密码修改时间") + private LocalDateTime passwordChangedAt; + + @Schema(description = "密码错误次数", example = "0") + private Integer failedCount; + + @Schema(description = "UKey 绑定记录 ID,用于区分同一 uid 下的主/备 UKey") + private Long ukeyBindingId; + + @Schema(description = "UKey 序列号", example = "31HD332HER333") + private String ukeySerialNo; + + public String getRoleCode() { + return roleCode; + } + + public void setRoleCode(String roleCode) { + this.roleCode = roleCode; + } + + public String getRoleName() { + return roleName; + } + + public void setRoleName(String roleName) { + this.roleName = roleName; + } + + public Integer getUid() { + return uid; + } + + public void setUid(Integer uid) { + this.uid = uid; + } + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public String getDisplayName() { + return displayName; + } + + public void setDisplayName(String displayName) { + this.displayName = displayName; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getStatusName() { + return statusName; + } + + public void setStatusName(String statusName) { + this.statusName = statusName; + } + + public LocalDateTime getLastLoginAt() { + return lastLoginAt; + } + + public void setLastLoginAt(LocalDateTime lastLoginAt) { + this.lastLoginAt = lastLoginAt; + } + + public LocalDateTime getPasswordChangedAt() { + return passwordChangedAt; + } + + public void setPasswordChangedAt(LocalDateTime passwordChangedAt) { + this.passwordChangedAt = passwordChangedAt; + } + + public Integer getFailedCount() { + return failedCount; + } + + public void setFailedCount(Integer failedCount) { + this.failedCount = failedCount; + } + + public Long getUkeyBindingId() { + return ukeyBindingId; + } + + public void setUkeyBindingId(Long ukeyBindingId) { + this.ukeyBindingId = ukeyBindingId; + } + + public String getUkeySerialNo() { + return ukeySerialNo; + } + + public void setUkeySerialNo(String ukeySerialNo) { + this.ukeySerialNo = ukeySerialNo; + } +} diff --git a/src/main/java/com/cisd/tms/modules/auth/dto/AuthUserListResponse.java b/src/main/java/com/cisd/tms/modules/auth/dto/AuthUserListResponse.java new file mode 100644 index 0000000..40c4af8 --- /dev/null +++ b/src/main/java/com/cisd/tms/modules/auth/dto/AuthUserListResponse.java @@ -0,0 +1,53 @@ +package com.cisd.tms.modules.auth.dto; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.util.ArrayList; +import java.util.List; + +@Schema(description = "用户管理列表响应") +public class AuthUserListResponse { + + @Schema(description = "页码,从 1 开始", example = "1") + private int page; + + @Schema(description = "每页大小", example = "10") + private int pageSize; + + @Schema(description = "总记录数", example = "5") + private long total; + + @Schema(description = "用户列表") + private List items = new ArrayList<>(); + + public int getPage() { + return page; + } + + public void setPage(int page) { + this.page = page; + } + + public int getPageSize() { + return pageSize; + } + + public void setPageSize(int pageSize) { + this.pageSize = pageSize; + } + + public long getTotal() { + return total; + } + + public void setTotal(long total) { + this.total = total; + } + + public List getItems() { + return items; + } + + public void setItems(List items) { + this.items = items; + } +}