package com.emotion.dto.request;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.List;
import java.util.Map;

/**
 * 实现路径创建请求
 *
 * @author huazhongmin
 * @date 2025-12-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class LifePathCreateRequest extends BaseRequest {

    /**
     * 关联剧本ID
     */
    @NotBlank(message = "关联剧本ID不能为空")
    private String scriptId;

    /**
     * 路径标题
     */
    @Size(max = 200, message = "路径标题长度不能超过200个字符")
    private String title;

    /**
     * 路径描述
     */
    private String description;

    /**
     * 路径步骤列表
     * 每个步骤包含: phase, time, content, action, resources, habit
     */
    private List<Map<String, Object>> steps;

    /**
     * 状态: active-进行中, completed-已完成, archived-已归档
     */
    private String status;

    /**
     * 完成进度百分比
     */
    private Double progress;
}
