package com.lesingle.creation.dto.user;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotBlank;
import java.util.List;

/**
 * 创建用户 DTO
 */
@Data
@Schema(description = "创建用户请求")
public class CreateUserDTO {

    @NotBlank(message = "用户名不能为空")
    @Schema(description = "用户名", example = "zhangsan")
    private String username;

    @NotBlank(message = "密码不能为空")
    @Schema(description = "密码", example = "123456")
    private String password;

    @NotBlank(message = "昵称不能为空")
    @Schema(description = "昵称", example = "张三")
    private String nickname;

    @Schema(description = "邮箱")
    private String email;

    @Schema(description = "手机号")
    private String phone;

    @Schema(description = "性别：male-男，female-女", example = "male")
    private String gender;

    @Schema(description = "头像 URL")
    private String avatar;

    @Schema(description = "账号状态：enabled-启用，disabled-停用", example = "enabled")
    private String status;

    @Schema(description = "角色 ID 列表")
    private List<Long> roleIds;
}
