package com.seer.teach.user.app.user.controller.req;

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;
import java.time.LocalDate;

/**
 * @Author: chenjiajian
 * @Description: 小程序端保存用户孩子信息
 * @Data: 2025-05-08 19:35
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Schema(description = "小程序端孩子添加信息请求实体类")
public class UserRegisterReq {

    @Schema(description = "账户")
    @NotBlank(message = "账户不可为空")
    private String mobile;

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

    @NotBlank(message = "头像URL不可为空")
    @Schema(description = "头像URL")
    private String avatar;

    @NotBlank(message = "昵称不可为空")
    @Schema(description = "昵称")
    private String nickName;

    @Schema(description = "性别 0 女 1 男")
    @NotNull(message = "性别不能为空")
    private Integer gender;

    @Schema(description = "出生日期")
    @NotNull(message = "出生日期不能为空")
    private LocalDate birthDate;

    @NotNull(message = "年级不可为空")
    @Schema(description = "年级")
    private Integer gradeId;

}