package com.tashow.cloud.productapi.api.product.vo.prodserviceoverarearules;

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

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

@Schema(description = "管理后台 - 超区规则 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ProdServiceOverAreaRulesRespVO {

    @Schema(description = "超区规则的唯一标识符", requiredMode = Schema.RequiredMode.REQUIRED, example = "32421")
    @ExcelProperty("超区规则的唯一标识符")
    private Long id;

    @Schema(description = "关联的商品ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "20133")
    @ExcelProperty("关联的商品ID")
    private Long prodId;

    @Schema(description = "超区规则类型（0:拒单、2:接单并收取超区费、3:接单并免超区费）", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("超区规则类型（0:拒单、2:接单并收取超区费、3:接单并免超区费）")
    private Boolean ruleType;

    @Schema(description = "超区费用（仅在rule_type为accept_with_fee时有效）")
    @ExcelProperty("超区费用（仅在rule_type为accept_with_fee时有效）")
    private BigDecimal fee;

    @Schema(description = "规则创建时间")
    @ExcelProperty("规则创建时间")
    private LocalDateTime createdAt;

    @Schema(description = "规则最后更新时间")
    @ExcelProperty("规则最后更新时间")
    private LocalDateTime updatedAt;

}