package com.jeesharp.business.modules.marketing.memberTenant.dto;

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

/**
 * 后台绑定会员到当前店铺并可选设置店内角色。
 *
 * @author jeesharp
 * @since 2026-06-25
 */
@Data
@Schema(description = "后台绑定店铺会员")
public class MemberTenantBindDTO {

    @NotBlank(message = "会员关键词不能为空")
    @Schema(description = "会员关键词（编号/昵称/姓名/手机/会员主键）", requiredMode = Schema.RequiredMode.REQUIRED)
    private String memberKeyword;

    @NotBlank(message = "店铺编码不能为空")
    @Schema(description = "店铺租户编码", requiredMode = Schema.RequiredMode.REQUIRED)
    private String tenantCode;

    @Schema(description = "店铺内角色：CUSTOMER/CLERK/MANAGER，默认 CUSTOMER")
    private String memberRole;

    @Schema(description = "推广渠道编码")
    private String channelCode;
}
