package com.backendsys.entity.Ali;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.Valid;
import lombok.Data;

@Data
public class AliDashscopeTaskDTO {

    public static interface Delete{}
    public static interface Detail{}
    public static interface Update{}
    public static interface Create{}

    private Long id;

    @NotNull(message="user_id 不能为空", groups = { Create.class, Update.class })
    private Long user_id;

    private String request_id;
    @NotBlank(message = "task_id 不能为空", groups = { Create.class, Update.class, Detail.class, Delete.class })
    private String task_id;
    @NotBlank(message = "task_status 不能为空", groups = { Create.class, Update.class })
    private String task_status;

    private String thumb;

    private String submit_time;
    private String scheduled_time;
    private String end_time;

    private Integer task_metrics_total;
    private Integer task_metrics_succeeded;
    private Integer task_metrics_failed;

    @Valid
    private AliDashscopeTaskResultDTO results;

    private String create_time;
    private String update_time;


}
