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

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.math.BigDecimal;

@Schema(description = "管理后台 - 服务详情新增/修改 Request VO")
@Data
public class SkuServiceDetailsSaveReqVO {

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

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

    @Schema(description = "图片")
    private String pic;

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

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

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

    @Schema(description = "是否默认值0否1是")
    private Boolean isDefault;

    @Schema(description = "类型：0：配置信息1：交付方式", example = "2")
    private Boolean type;

    @Schema(description = "描述")
    private String describeContent;
    /**
     * 地点
     */
    private String adress;

    /**
     * 触发节点名称
     */
    private String triggerName;


    /**
     * 触发节点id（或关联节点）
     */
    private Long triggerId;


    /**
     * 是否并行0串行1并行
     */
    private Integer isParallel;

}