package cn.iocoder.yudao.module.system.controller.admin.discount.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 长者优惠规则新增/修改 Request VO")
@Data
public class DiscountRuleSaveReqVO {

    @Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "17402")
    private Long id;

    @Schema(description = "长者ID", example = "25232")
    private Long elderId;

    @Schema(description = "长者姓名", example = "李四")
    private String elderName;

    @Schema(description = "优惠规则名称", example = "赵六")
    private String ruleName;

    private Long categoryId;

    private String categoryName;

    @Schema(description = "费用项ID", example = "3784")
    private Long itemId;

    @Schema(description = "费用项名称", example = "赵六")
    private String itemName;

    @Schema(description = "原价", example = "30155")
    private BigDecimal price;

    @Schema(description = "优惠折扣", example = "12062")
    private BigDecimal discount;

    @Schema(description = "优惠金额")
    private BigDecimal discountAmount;

    @Schema(description = "优惠后金额")
    private BigDecimal discountedAmount;

    @Schema(description = "优惠开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;

    @Schema(description = "优惠结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;

    @Schema(description = "状态，0：失效 1：正常", example = "2")
    private Integer status;

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

    private Long tenantId;

}