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

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

@Schema(description = "管理后台 - 商品SKU扩展服务表单新增/修改 Request VO")
@Data
public class SkuServicesFormSaveReqVO {

    @Schema(description = "扩展服务的唯一标识符", requiredMode = Schema.RequiredMode.REQUIRED, example = "24347")
    private Long id;

    @Schema(description = "表单名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
    @NotEmpty(message = "表单名称不能为空")
    private String name;

    @Schema(description = "关联的商品SKU ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "20020")
    @NotNull(message = "关联的商品SKU ID不能为空")
    private Long skuId;

    @Schema(description = "服务名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @NotEmpty(message = "服务名称不能为空")
    private String serviceName;

    @Schema(description = "是否启用该服务", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "是否启用该服务不能为空")
    private Boolean isEnabled;

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

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

}