package com.greenorange.promotion.model.dto.userInfo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;


/**
 * 经理信息更新请求体
 */
@Data
@Schema(description = "经理信息更新请求体", requiredProperties = {"id", "nickName", "userAvatar",
        "phoneNumber", "userPassword"})
public class ManagerUserInfoUpdateRequest implements Serializable {

    /**
     * 用户表 ID
     */
    @Min(value = 1L, message = "用户ID不能小于1")
    @Schema(description = "用户ID", example = "1")
    private Long id;

    /**
     * 用户昵称
     */
    @NotBlank(message = "用户昵称不能为空")
    @Schema(description = "用户昵称", example = "chenxinzhi")
    private String nickName;

    /**
     * 用户头像URL
     */
    @NotBlank(message = "用户头像URL不能为空")
    @Schema(description = "用户头像URL", example = "http://xxx.png")
    private String userAvatar;

    /**
     * 手机号
     */
    @NotBlank(message = "手机号不能为空")
    @Schema(description = "手机号", example = "15888610253")
    private String phoneNumber;


    /**
     * 密码（建议加密存储）
     */
    @NotBlank(message = "密码不能为空")
    @Schema(description = "密码（建议加密存储）", example = "qingcheng")
    private String userPassword;


    @Serial
    private static final long serialVersionUID = 1L;

}
