1
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
package com.yunhai.bschclassmanage.model.tool;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 用户同步入参 DTO,结构与调用方实际下发的 JSON 保持一致。
|
||||
* 注意:该 JSON 是调用方自定义格式,并非 yunhai 框架的 BoaUser,
|
||||
* 因此用独立 DTO 承载,避免强转 / 反序列化失败。
|
||||
*/
|
||||
@Data
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class SyncUserDTO {
|
||||
|
||||
private Integer id;
|
||||
private String account;
|
||||
private String name;
|
||||
private String idcard;
|
||||
private String phone;
|
||||
private String email;
|
||||
private Integer gender;
|
||||
private String birthday;
|
||||
private Integer status;
|
||||
private String profilePicture;
|
||||
private List<SyncUserGroupDTO> groups;
|
||||
private List<SyncUserRoleDTO> roleList;
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.yunhai.bschclassmanage.model.tool;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 同步用户中的班级/分组节点,对应 JSON 的 groups 元素。
|
||||
* 例:{"groupId":12,"no":null,"schoolId":3}
|
||||
*/
|
||||
@Data
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class SyncUserGroupDTO {
|
||||
|
||||
private Integer groupId;
|
||||
private Integer no;
|
||||
private Integer schoolId;
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.yunhai.bschclassmanage.model.tool;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 同步用户中的角色节点,对应 JSON 的 roleList 元素。
|
||||
* 例:{"roleId":5,"schId":3}
|
||||
*/
|
||||
@Data
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class SyncUserRoleDTO {
|
||||
|
||||
private Integer roleId;
|
||||
private Integer schId;
|
||||
}
|
||||
Reference in New Issue
Block a user