package com.njcn.rdms.module.project.controller.admin.status.vo.transition;

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

import java.time.LocalDateTime;

/**
 * 管理后台 - 对象状态流转 Response VO
 */
@Schema(description = "管理后台 - 对象状态流转 Response VO")
@Data
public class ObjectStatusTransitionRespVO {

    @Schema(description = "主键 ID", example = "1024")
    private Long id;

    @Schema(description = "对象类型", example = "project")
    private String objectType;

    @Schema(description = "动作编码", example = "start")
    private String actionCode;

    @Schema(description = "动作名称", example = "开始")
    private String actionName;

    @Schema(description = "起始状态编码", example = "pending")
    private String fromStatusCode;

    @Schema(description = "目标状态编码", example = "active")
    private String toStatusCode;

    @Schema(description = "是否必须填写原因", example = "false")
    private Boolean needReason;

    @Schema(description = "配置状态", example = "0")
    private Integer status;

    @Schema(description = "备注", example = "默认流转")
    private String remark;

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

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

}
