package cn.iocoder.yudao.module.member.vo;

import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static cn.iocoder.yudao.common.DictBaseConstants.MEMBER_ACTIVE;

/**
 * 用于导出营销活动VO
 *
 * @author 小李
 * @date 20:26 2024/12/2
**/
@Data
@ExcelIgnoreUnannotated
public class ActiveMainExportVO {

    @ExcelProperty("活动名称")
    private String name;

    @ExcelProperty(value = "活动类型", converter = DictConvert.class)
    @DictFormat(MEMBER_ACTIVE)
    private String type;

    @ExcelProperty("活动开始时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime beginTime;

    @ExcelProperty("活动结束时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    @ExcelProperty("活动状态")
    private String status;

    @ExcelProperty("活动描述")
    private String remark;
}
