package com.sien.common.param;

import io.geekidea.springbootplus.framework.core.pagination.BasePageOrderParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * <pre>
 * 开通会员参数对象
 * </pre>
 *
 * @author hewei
 * @date 2021-02-25
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "捐款记录分页参数")
public class VipRecordOpenParam extends BasePageOrderParam {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("开通会员金额")
    private BigDecimal money;

    @NotNull(message = "开通多久不能为空")
    @ApiModelProperty("开通多久")
    private Integer years;

    @NotBlank(message = "会员等级不能为空")
    @ApiModelProperty("会员等级,直接传文字")
    private String vipLevel;

    @NotBlank(message = "不能为空")
    @ApiModelProperty("是否代替他人捐款")
    private Boolean isAgent;

    @NotBlank(message = "不能为空")
    @ApiModelProperty("替他人捐款,接收人userId, 当isAgent=1为必填")
    private Long agentUserId;

}
