package com.seer.teach.user.admin.request;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;

/**
 * @Author: Captain
 * @Description:
 * @Date: 2025-05-14 20:28
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Schema(description = "管理员注册请求参数")
public class RegisterAdminReq {

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

    @Schema(description = "是否启用(1启用，0禁用)")
    @NotNull(message = "状态不能为空")
    private Integer status;

    @NotBlank(message = "用户名不能为空")
    @Schema(description = "帐号")
    private String userName;

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

    @Schema(description = "真实姓名")
    private String realName;

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

    @Schema(description = "性别（0-女，1-男）")
    private Integer gender;

    @Schema(description = "昵称")
    private String nickName;

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