package com.cf.imes.module.system.controller.admin.funds.productpromotion.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static com.cf.imes.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 优惠活动表 Request VO")
@Data
@ExcelIgnoreUnannotated
public class ProductPromotionRespVO {

    @Schema(description = "活动id", example = "1")
    private Long id;

    @Schema(description = "活动名称", example = "赵六")
    private String activityName;

    @Schema(description = "购买时长", example = "1")
    private Integer purchaseDuration;

    @Schema(description = "购买时长单位，0：年、1：月、2：日", example = "1")
    private Integer purchaseDurationUnit;

    @Schema(description = "赠送时长", example = "1")
    private Integer giftDuration;

    @Schema(description = "赠送时长单位，0：年、1：月、2：日", example = "1")
    private Integer giftDurationUnit;

    @Schema(description = "关联产品编号")
    private Long productId;

    @Schema(description = "关联产品名称")
    private String productName;

    @Schema(description = "开始时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime startTime;

    @Schema(description = "结束时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime endTime;

    @Schema(description = "操作时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime updateTime;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "是否删除")
    private Integer deleted;
}
