package com.sqx.modules.activity.vo;

import com.sqx.modules.activity.dto.ActivityOfFullReductionDTO;
import com.sqx.modules.activity.dto.ActivityOfTimeIntervalDTO;
import com.sqx.modules.activity.dto.ActivityOfGlobalDiscountDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 活动vo
 *
 * @author : codingliang
 * @date : 2024-06-19 10:07
 */
@Data
public class ActivityVO {
    @ApiModelProperty("活动id")
    private Long id;

    @ApiModelProperty("活动标题")
    private String title;

    @ApiModelProperty("活动描述")
    private String content;

    @ApiModelProperty("活动图片")
    private String image;

    @ApiModelProperty("是否启用;0否 1是")
    private String enableFlag;

    @ApiModelProperty("是否允许商户主动加入;0否 1是")
    private String allowShop;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;

    @ApiModelProperty("活动类型;1普通活动、2时段优惠、3满额优惠、4全场优惠")
    private String type;

    @ApiModelProperty("活动开始时间")
    private Date startTime;

    @ApiModelProperty("活动结束时间")
    private Date endTime;

    @ApiModelProperty("优惠时段信息列表;type为2时该字段不为空")
    private List<ActivityOfTimeIntervalDTO> timeIntervalInfos;

    @ApiModelProperty("满减字段优惠;type为3时该字段不为空")
    private ActivityOfFullReductionDTO fullReductionInfo;

    @ApiModelProperty("全场优惠;type为4时该字段不为空")
    private ActivityOfGlobalDiscountDTO globalDiscountsInfo;
}
