package com.erp.order.dto.request;

import lombok.Data;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Data
public class PullOrdersRequest {

    @NotBlank(message = "平台不能为空")
    private String platform;

    @NotNull(message = "店铺ID不能为空")
    private Long shopId;

    @NotBlank(message = "拉取类型不能为空")
    private String pullType; // all / increment / specify

    /** specify类型时使用，平台订单ID列表，逗号分隔 */
    private String orderIds;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;
}
