package cn.novalon.manage.sys.dto.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Email;

/**
 * 用户更新请求DTO
 * 
 * @author 张翔
 * @date 2026-03-14
 */
@Schema(description = "用户更新请求")
public class UserUpdateRequest {

    @Schema(description = "邮箱", example = "newemail@example.com")
    private String email;

    @Schema(description = "状态：0-禁用，1-正常", example = "1")
    private Integer status;

    @Schema(description = "角色ID", example = "1")
    private Long roleId;
    
    @Schema(description = "是否清除角色关联", example = "false")
    private Boolean clearRole;

    @Email(message = "邮箱格式不正确")
    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }
    
    public Boolean getClearRole() {
        return clearRole;
    }
    
    public void setClearRole(Boolean clearRole) {
        this.clearRole = clearRole;
    }
}
