package com.tashow.cloud.product.vo.skuservicedeliver;

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

@Schema(description = "管理后台 - 服务交付方式新增/修改 Request VO")
@Data
public class SkuServiceDeliverSaveReqVO {

    @Schema(description = "服务遗体运输唯一标识符", requiredMode = Schema.RequiredMode.REQUIRED, example = "12984")
    private Long id;

    @Schema(description = "关联的扩展服务ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "27072")
    @NotNull(message = "关联的扩展服务ID不能为空")
    private Long serviceId;

    @Schema(description = "交互方式0：快递物流 1：到店自提 2：商家自送", example = "2")
    private Boolean type;

    @Schema(description = "价格", example = "23915")
    private BigDecimal price;

    @Schema(description = "是否收费0:免费1收费")
    private Boolean isCharge;

    @Schema(description = "详细地址", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "详细地址不能为空")
    private String address;

    @Schema(description = "省")
    private String province;

    @Schema(description = "市")
    private String city;

    @Schema(description = "区")
    private String area;

    @Schema(description = "电话号码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "电话号码不能为空")
    private String tel;

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

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

}