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

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.NotNull;
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 OrderDetailComponentListReqVO {
    @Schema(description = "订单编号", example = "1")
    @NotNull(message = "{order.detail.component.list.query.orderId.not.null}")
    private Long orderId;

    @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.roomIds.max}")
    private Set<Long> roomIds;

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

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

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

    @Schema(description = "是否删除", example = "false")
    private boolean deleted;

    @Schema(description = "加工状态：0不加工、1未加工、2已加工", example = "1")
    @InEnum(OrderComponentProcessStatusEnum.class)
    private Integer processStatus;
}
