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

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

import java.math.BigDecimal;
import java.time.LocalDateTime;


@Schema(description = "管理后台 - 产品明细表 productsDetails Response VO")
@Data
@ExcelIgnoreUnannotated
public class ProductDetailsRespVO {

    @Schema(description = "产品详情id", requiredMode = Schema.RequiredMode.REQUIRED, example = "10725")
    private Long id;

    @Schema(description = "产品ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long productId;

    @Schema(description = "购买时长", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Integer duration;

    @Schema(description = "产品时长单位，0：年、1：月", example = "1")
    private Integer durationUnit;

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

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

    @Schema(description = "产品原价", requiredMode = Schema.RequiredMode.REQUIRED, example = "100")
    private BigDecimal originalPrice;

    @Schema(description = "折扣", requiredMode = Schema.RequiredMode.REQUIRED, example = "0.8")
    private BigDecimal discount;

    @Schema(description = "产品现价", requiredMode = Schema.RequiredMode.REQUIRED, example = "80")
    private BigDecimal currentPrice;

    @Schema(description = "操作时间", requiredMode = Schema.RequiredMode.REQUIRED)
    private LocalDateTime updateTime;

}
