package com.ruoyi.school.member.domain.req;

import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDate;

@Data
//"创建会员卡请求")
public class CreateMemberCardDTO {

    @NotNull(message = "会员ID不能为空")
    //value = "会员ID", required = true)
    private Long memberId;

    //value = "卡类型ID", required = true)
    private Long cardTypeId;
    private Long handleDepartId;
    private Long saleStaffId;
    private Long commissionPlansId;

    //"卡号（不传则自动生成）")
    private String cardNo;
    //时间卡 是否激活 1:立刻激活 2：首次预约激活
    private String haveActivationDate;
    //储值or次数卡 是否设置有效期 1:不限期，用完失效 2：设置有效期
    private String haveExpiryDate;

    //"激活日期（不传则立即激活）")
    private LocalDate activationDate;

    //"到期日期（不传则根据卡类型计算）")
    private LocalDate expiryDate;

    @NotNull(message = "价格不能为空")
    //value = "购买价格", required = true)
    private BigDecimal price;

    //"支付方式")
    private Long accountId;

    //"订单号")
    private String orderNo;
    /**
     * 课时数量
     */
    private BigDecimal totalCount;

    /**
     * 总价
     */
    private BigDecimal totalFee;

    /**
     * 天数
     */
    private Integer totalDays;

    //"备注")
    private String notes;
    private String chargeType;//扣费模式 count:课时 days:时间 total_fee:储值

    public void checkParam(){

    }
}
