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

import com.njcn.rdms.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static com.njcn.rdms.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * 管理后台 - 对象状态流转分页 Request VO
 */
@Schema(description = "管理后台 - 对象状态流转分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
public class ObjectStatusTransitionPageReqVO extends PageParam {

    @Schema(description = "关键字，匹配动作编码或动作名称", example = "start")
    private String keyword;

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

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

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

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

    @Schema(description = "更新时间", example = "[2026-05-01 00:00:00, 2026-05-31 23:59:59]")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] updateTime;

}
