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

import com.cf.imes.framework.common.pojo.PageParam;
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 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 OrderDetailComponentPageReqVO extends PageParam {
    @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.componentIds.max}")
    private Set<Long> componentIds;

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

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