package com.cf.imes.module.system.controller.admin.funds.recharge.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.math.BigDecimal;
import java.time.LocalDateTime;

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

@Schema(description = "管理后台 - 赠送金活动表 gift_money Request VO")
@Data
@ExcelIgnoreUnannotated
public class RechargeRespVO {

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

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

    @Schema(description = "赠送类型", example = "0满X送X； 1每满X送X")
    private Integer rechargeGiftType;

    @Schema(description = "充值类型", example = "0微信、支付宝 1微信 2支付宝")
    private Integer rechargeType;

    @Schema(description = "充值金额")
    private BigDecimal rechargeAmount;

    @Schema(description = "赠送金额")
    private BigDecimal giftAmount;

    @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;
}
