feat:添加OA系统对接相关代码
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package org.springblade.system.pojo.context;
|
||||
|
||||
/**
|
||||
* 获取设置手机号接口
|
||||
* @author bfhuange
|
||||
* @since 2026/4/1
|
||||
*/
|
||||
public interface IPhone {
|
||||
/**
|
||||
* 设置手机号
|
||||
* @return
|
||||
*/
|
||||
void setPhone(String phone);
|
||||
/**
|
||||
* 获取手机号
|
||||
* @return
|
||||
*/
|
||||
String getPhone();
|
||||
}
|
||||
@@ -31,6 +31,7 @@ import lombok.EqualsAndHashCode;
|
||||
import org.springblade.core.tenant.mp.TenantEntity;
|
||||
import org.springblade.core.tool.jackson.Sensitive;
|
||||
import org.springblade.core.tool.sensitive.SensitiveType;
|
||||
import org.springblade.system.pojo.context.IPhone;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.util.Date;
|
||||
@@ -43,7 +44,7 @@ import java.util.Date;
|
||||
@Data
|
||||
@TableName("blade_user")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class User extends TenantEntity {
|
||||
public class User extends TenantEntity implements IPhone {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
@@ -116,4 +117,22 @@ public class User extends TenantEntity {
|
||||
private Integer isLeader;
|
||||
|
||||
|
||||
/**
|
||||
* 部门编码
|
||||
*/
|
||||
private String deptCodes;
|
||||
/**
|
||||
* 同步时间
|
||||
*/
|
||||
private Date syncTime;
|
||||
/**
|
||||
* 是否是oa的账号
|
||||
*/
|
||||
private Integer isOa;
|
||||
/**
|
||||
* 是否推送mk
|
||||
*/
|
||||
private Integer isPushMk;
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -36,6 +36,7 @@ import lombok.Data;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 实体类
|
||||
@@ -85,4 +86,45 @@ public class UserDept implements Serializable {
|
||||
@Schema(description = "是否已删除")
|
||||
private Integer isDeleted;
|
||||
|
||||
|
||||
/**
|
||||
* 公司编码
|
||||
*/
|
||||
@Schema(description = "公司编码")
|
||||
private String companyCode;
|
||||
/**
|
||||
* 公司名
|
||||
*/
|
||||
@Schema(description = "公司名")
|
||||
private String companyName;
|
||||
/**
|
||||
* 部门编码
|
||||
*/
|
||||
@Schema(description = "部门编码")
|
||||
private String deptCode;
|
||||
/**
|
||||
* 部门名
|
||||
*/
|
||||
@Schema(description = "部门名")
|
||||
private String deptName;
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
@Schema(description = "排序")
|
||||
private Integer sort;
|
||||
/**
|
||||
* oaid
|
||||
*/
|
||||
@Schema(description = "oaid")
|
||||
private String oaId;
|
||||
/**
|
||||
* oa的loginId
|
||||
*/
|
||||
@Schema(description = "oa的loginId")
|
||||
private String oaLoginId;
|
||||
/**
|
||||
* 同步时间
|
||||
*/
|
||||
@Schema(description = "同步时间")
|
||||
private Date syncTime;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
package org.springblade.system.pojo.vo;
|
||||
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author bfhuange
|
||||
* @date 2024/8/28
|
||||
*/
|
||||
@Data
|
||||
@Schema(description = "UserListVO对象")
|
||||
public class UserListVO implements Serializable {
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long id;
|
||||
/**
|
||||
* 用户编号
|
||||
*/
|
||||
private String code;
|
||||
/**
|
||||
* 昵称
|
||||
*/
|
||||
private String name;
|
||||
/**
|
||||
* 手机
|
||||
*/
|
||||
private String phone;
|
||||
}
|
||||
Reference in New Issue
Block a user