feat:查询用户详细信息(带部门角色岗位)
This commit is contained in:
@@ -8,6 +8,7 @@ import java.time.LocalDateTime;
|
||||
|
||||
@Data
|
||||
public class ReportTemplateResp {
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "报告模版唯一ID")
|
||||
private String uuid;
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
package com.sdm.common.entity.resp.system;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
public class CIDDeptResp implements Serializable {
|
||||
private static final long serialVersionUID = -5457958807109903023L;
|
||||
|
||||
@Schema(description="部门ID")
|
||||
private Long deptId;
|
||||
|
||||
@Schema(description="部门编码")
|
||||
private String deptCode;
|
||||
|
||||
@Schema(description="部门名称")
|
||||
private String deptName;
|
||||
|
||||
@Schema(description="负责人user_id")
|
||||
private Long leaderId;
|
||||
|
||||
@Schema(description="排序")
|
||||
private Integer sortOrder;
|
||||
|
||||
@Schema(description="父级部门ID")
|
||||
private Long parentId;
|
||||
|
||||
@Schema(description="创建人")
|
||||
private Long createBy;
|
||||
|
||||
@Schema(description="创建时间")
|
||||
private Long createTime;
|
||||
|
||||
@Schema(description="修改人")
|
||||
private Long updateBy;
|
||||
|
||||
@Schema(description="更新时间")
|
||||
private Long updateTime;
|
||||
|
||||
@Schema(description="所属租户ID")
|
||||
private Long tenantId;
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
package com.sdm.common.entity.resp.system;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
public class CIDPostResp implements Serializable {
|
||||
private static final long serialVersionUID = -7325581156410130798L;
|
||||
|
||||
/**
|
||||
* 岗位ID
|
||||
*/
|
||||
@Schema(description="岗位ID")
|
||||
@NotNull(message = "岗位Id不能为空!")
|
||||
private Long postId;
|
||||
|
||||
/**
|
||||
* 岗位编码
|
||||
*/
|
||||
@Schema(description="岗位编码")
|
||||
@NotBlank(message = "岗位编码不能为空!")
|
||||
private String postCode;
|
||||
|
||||
/**
|
||||
* 岗位名称
|
||||
*/
|
||||
@Schema(description="岗位名称")
|
||||
@NotBlank(message = "岗位名称不能为空!")
|
||||
private String postName;
|
||||
|
||||
/**
|
||||
* 岗位排序
|
||||
*/
|
||||
@Schema(description="岗位排序")
|
||||
@NotNull(message = "岗位排序不能为空!")
|
||||
private Integer sortOrder;
|
||||
|
||||
/**
|
||||
* 岗位描述
|
||||
*/
|
||||
@Schema(description="岗位描述")
|
||||
private String description;
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
package com.sdm.common.entity.resp.system;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class CIDStaffResp implements Serializable {
|
||||
private static final long serialVersionUID = -7327814323528614516L;
|
||||
|
||||
@Schema(description = "员工ID")
|
||||
private Long staffId;
|
||||
|
||||
/**
|
||||
* 员工编号,系统生成
|
||||
*/
|
||||
@Schema(description = "员工编号,系统生成")
|
||||
private String staffCode;
|
||||
|
||||
/**
|
||||
* 公司邮箱地址,每个公司的邮箱不一样
|
||||
*/
|
||||
@Schema(description = "公司邮箱地址,每个公司的邮箱不一样")
|
||||
private String email;
|
||||
|
||||
/**
|
||||
* 1-是管理员;0-非管理员
|
||||
*/
|
||||
@Schema(description = "1-是管理员;0-非管理员")
|
||||
private String isAdmin;
|
||||
|
||||
/**
|
||||
* 所属用户ID
|
||||
*/
|
||||
@Schema(description = "所属用户ID")
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* 所属租户ID
|
||||
*/
|
||||
@Schema(description = "所属租户ID")
|
||||
private Long tenantId;
|
||||
|
||||
/**
|
||||
* 登录默认员工账号:0-默认;1-非默认
|
||||
*/
|
||||
@Schema(description = "登录默认员工账号:0-默认;1-非默认")
|
||||
private String loginDefault;
|
||||
|
||||
/**
|
||||
* 锁定标记,0未锁定,1已锁定
|
||||
*/
|
||||
@Schema(description = "锁定标记,0未锁定,1已锁定")
|
||||
private String status;
|
||||
|
||||
@Schema(description = "用户信息")
|
||||
private CIDUserResp userInfo;
|
||||
|
||||
@Schema(description="关联岗位集合")
|
||||
private List<CIDDeptResp> deptList = new ArrayList<>();
|
||||
|
||||
@Schema(description="关联部门集合")
|
||||
private List<CIDPostResp> postList = new ArrayList<>();
|
||||
|
||||
@Schema(description="关联role集合")
|
||||
private List<CIDRoleResp> roleList = new ArrayList<>();
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user