package com.lesingle.edu.dto.response;

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

import java.time.LocalDateTime;

/**
 * 任务模板响应
 * 用于返回任务模板信息给前端
 */
@Data
@Builder
@Schema(description = "任务模板响应")
public class TaskTemplateResponse {

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

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

    @Schema(description = "模板名称")
    private String name;

    @Schema(description = "模板描述")
    private String description;

    @Schema(description = "模板类型")
    private String type;

    @Schema(description = "任务类型")
    private String taskType;

    @Schema(description = "关联课程 ID")
    private Long relatedCourseId;

    @Schema(description = "默认持续时间 (天)")
    private Integer defaultDuration;

    @Schema(description = "是否默认模板")
    private Integer isDefault;

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

    @Schema(description = "创建人 ID")
    private Long createdBy;

    @Schema(description = "模板内容")
    private String content;

    @Schema(description = "是否公开")
    private Integer isPublic;

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

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