package com.zhongshu.card.server.core.domain.schedule;

import com.zhongshu.card.server.core.domain.base.SuperMain;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author TRX
 * @date 2024/11/6
 */
@Data
@Document
@AllArgsConstructor
@NoArgsConstructor
public class ScheduleLog extends SuperMain {

    public static final Integer STATUS_SUCESS = 1;
    public static final Integer STATUS_FAILED = 0;
    public static final Integer STATUS_PASS = 2;

    @Schema(description = "关联的定时任务信息")
    private ScheduleTaskConfig scheduleTaskConfig;

    private Long executeTime;

    private String executeTimeStr;

    private Long costTime;

    private String result;

    private String exception;

    private Integer status;

}
