package com.nanri.aiimage.modules.productrisk.model.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

@Data
@Schema(description = "批量店铺匹配请求体：按名称查询紫鸟索引，返回是否命中及店铺元数据")
public class ProductRiskMatchShopsRequest {

    @NotNull(message = "user_id 不能为空")
    @JsonProperty("user_id")
    @Schema(description = "当前用户 ID（审计/归属；匹配逻辑主要依赖店名）", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long userId;

    @NotEmpty(message = "shop_names 不能为空")
    @JsonProperty("shop_names")
    @Schema(
            description = "待匹配的店铺名称列表，至少 1 个；服务端按列表顺序逐项查索引，返回体 `items` 与列表顺序一一对应",
            requiredMode = Schema.RequiredMode.REQUIRED,
            example = "[\"店铺甲\",\"店铺乙\"]")
    private List<String> shopNames;
}
