package com.cf.imes.module.system.controller.admin.process.vo.group;

import lombok.*;
import io.swagger.v3.oas.annotations.media.Schema;
import com.cf.imes.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static com.cf.imes.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 工序组表 process_group分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ProcessGroupPageReqVO extends PageParam {

    @Schema(description = "组织id", example = "1")
    private Long organId;

    @Schema(description = "工序组名称", example = "赵六")
    private String name;

    @Schema(description = "是否默认工序组：0 否 1 是")
    private Boolean isDefault;

    @Schema(description = "排序优先级")
    private Short sort;

    @Schema(description = "明细，工序 ID 逗号分隔")
    private String items;

    @Schema(description = "描述", example = "随便")
    private String description;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}