package com.lesingle.edu.dto.response;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 教师响应
 * 用于返回教师信息给前端
 */
@Data
@Builder
@Schema(description = "教师响应")
public class TeacherResponse {

    @Schema(description = "ID")
    private Long id;

    @Schema(description = "租户 ID")
    private Long tenantId;

    @JsonProperty("loginAccount")
    @Schema(description = "登录账号")
    private String username;

    @Schema(description = "姓名")
    private String name;

    @Schema(description = "电话")
    private String phone;

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

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

    @Schema(description = "性别")
    private String gender;

    @Schema(description = "个人简介")
    private String bio;

    @Schema(description = "状态")
    private String status;

    @Schema(description = "负责班级ID列表")
    private List<Long> classIds;

    @Schema(description = "负责班级名称")
    private Object classNames;

    @Schema(description = "授课次数")
    private Integer lessonCount;

    @Schema(description = "最后登录时间")
    private LocalDateTime lastLoginAt;

    @Schema(description = "创建时间")
    private LocalDateTime createdAt;

    @Schema(description = "更新时间")
    private LocalDateTime updatedAt;
}
