package com.yhy.module.core.controller.admin.resource.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class ResourcePriceSaveReqVO {

    @Schema(description = "价格ID，创建为空，更新时必填")
    private Long id;

    @Schema(description = "资源项ID", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull
    private Long resourceId;

    @Schema(description = "地区码", example = "CN-4401")
    private String regionCode;

    @Schema(description = "价格区间开始", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull
    private LocalDateTime periodStart;

    @Schema(description = "价格区间结束", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull
    private LocalDateTime periodEnd;

    @Schema(description = "不含税价")
    private BigDecimal priceTaxExcl;

    @Schema(description = "含税价")
    private BigDecimal priceTaxIncl;

    @Schema(description = "来源")
    private String source;
}
