package com.xiaoniu.system.operation.member.dto;

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

import java.math.BigDecimal;

/**
 * @Author haoxuyang
 * @Date 2024/10/17 10:02
 */
@Data
@Schema(description = "修改会员权益参数DTO")
public class EditMemberDTO {

    @Schema(description = "ID")
    @NotNull(message = "会员ID不能为空")
    private Long id;

    @Schema(description = "会员名称")
    @NotEmpty(message = "会员名称不能为空")
    private String memberName;

    @Schema(description = "会员图标")
    @NotEmpty(message = "会员图标不能为空")
    private String memberIcon;

    @Schema(description = "会员有效天数")
    @NotNull(message = "有效天数不能为空")
    private Integer memberEffectiveDays;

    @Schema(description = "会员价格")
    @NotNull(message = "会员价格不能为空")
    private BigDecimal memberPrice;

    @Schema(description = "会员类型（权益）（多个逗号分隔）")
    @NotEmpty(message = "会员类型不能为空")
    private String memberType;

    @Schema(description = "会员折扣")
    private Double memberDiscount;

    @Schema(description = "最大优惠限制")
    private BigDecimal maximumDiscountLimit;

    @Schema(description = "会员权益说明")
    @NotEmpty(message = "权益说明不能为空")
    private String equityStatement;

    @Schema(description = "会员状态（1-上架 2-下架）")
    private Integer memberStatus;
}
