package com.cf.imes.module.executor.controller.admin.assemblylist.vo;

import com.cf.imes.framework.common.pojo.PageParam;
import com.cf.imes.framework.common.validation.InEnum;
import com.cf.imes.module.executor.enums.ordercomponent.OrderComponentProcessStatusEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import java.util.List;
import java.util.Set;

/**
 *
 *
 * @author Gqr
 * @since 2026/2/2 11:34
 */
@Schema(description = "管理后台 - 装配清单 - 订单部件视图分页查询 Request VO")
@Data
@ToString(callSuper = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class AssemblyListComponentPageReqVO extends PageParam {
    @Schema(description = "订单编号", example = "[1,2]")
    @Size(max = 100, message = "{order.component.assemble.req.orderIds.max}")
    private List<Long> orderIds;

    @Schema(description = "部件编号", example = "[1,2]")
    @Size(max = 200, message = "{order.detail.component.list.query.componentIds.max}")
    private Set<Long> componentIds;

    @Schema(description = "部件 ID", example = "1024")
    private Long componentId;

    @Schema(description = "部件名称", example = "部件")
    @Length(max = 64, message = "{order.component.assemble.req.name.max}")
    private String name;

    @Schema(description = "加工状态：0不加工、1未加工、2已加工、3部分加工", example = "[1, 2]")
    @InEnum(OrderComponentProcessStatusEnum.class)
    private List<Integer> processStatus;
}
