package com.njcn.rdms.module.project.controller.admin.product.vo.setting;

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

import java.util.List;

@Schema(description = "管理后台 - 产品设置生命周期 Response VO")
@Data
@NoArgsConstructor
public class ProductSettingLifecycleRespVO {

    @Schema(description = "当前状态编码", example = "active")
    private String statusCode;

    @Schema(description = "当前状态名称", example = "启用")
    private String statusName;

    @Schema(description = "最近一次状态动作原因", example = "恢复正常推进")
    private String lastStatusReason;

    @Schema(description = "是否终态", example = "false")
    private Boolean terminal;

    @Schema(description = "是否允许编辑", example = "true")
    private Boolean allowEdit;

    @Schema(description = "当前状态可执行动作")
    private List<ProductSettingActionRespVO> availableActions;

}
