package com.ylx.point.domain.dto;

import com.ylx.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@ApiModel("积分活动分页查询请求DTO")
public class PointActivityValidityDTO {

    @ApiModelProperty("活动类型")
    @NotNull(message = "活动类型不能为空")
    private Integer activityType;

    @ApiModelProperty("过期策略: 1=永久有效, 2=逐笔过期(N天), 3=逐年过期(N年)")
    private Integer expirePolicy;

    @ApiModelProperty("有效期天数 (仅当 expire_policy=2 时有效)")
    private Integer expireDays;

    @Excel(name = "逐年过期年份 (expire_policy=3时有效)")
    private Integer expireYear;

}
