package cn.iocoder.yudao.module.system.api.user.dto;
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
import jakarta.validation.constraints.NotNull;
|
import lombok.Data;
|
|
import java.util.Set;
|
|
/**
|
* Admin 用户更新 Request DTO
|
*
|
* 供其他模块同步更新系统用户的部分信息(如 HRM 员工编辑时同步岗位/部门等)
|
*/
|
@Schema(description = "管理后台 - 用户更新 Request DTO")
|
@Data
|
public class AdminUserUpdateReqDTO {
|
|
@Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
|
@NotNull(message = "用户编号不能为空")
|
private Long id;
|
|
@Schema(description = "用户昵称", example = "张三")
|
private String nickname;
|
|
@Schema(description = "部门编号", example = "1")
|
private Long deptId;
|
|
@Schema(description = "岗位编号数组", example = "[1, 2]")
|
private Set<Long> postIds;
|
|
@Schema(description = "角色编号数组", example = "[1, 2]")
|
private Set<Long> roleIds;
|
|
@Schema(description = "用户邮箱", example = "zhangsan@example.com")
|
private String email;
|
|
@Schema(description = "备注", example = "备注信息")
|
private String remark;
|
|
}
|