package com.jeesharp.business.modules.coupon.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

import java.util.List;

/**
 * 管理端批量发放优惠券请求。
 *
 * @author jeesharp
 * @since 2026-05-07
 */
@Data
@Schema(description = "会员优惠券发放")
public class MemberCouponGrantDTO {

    @NotBlank(message = "请选择优惠券")
    @Schema(description = "优惠券 ID", requiredMode = Schema.RequiredMode.REQUIRED)
    private String templateId;

    @NotEmpty(message = "请填写至少一位会员")
    @Schema(description = "会员标识列表（会员编号、手机号等，每项对应一位会员）", requiredMode = Schema.RequiredMode.REQUIRED)
    private List<String> memberIds;

    @Schema(description = "备注")
    private String remarks;
}
