package com.zsElectric.boot.business.model.form;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.math.BigDecimal;
import jakarta.validation.constraints.*;

/**
 * 企业专属价格表单对象
 *
 * @author zsElectric
 * @since 2025-12-11 10:13
 */
@Getter
@Setter
@Schema(description = "企业专属价格表单对象")
public class FirmStationTimePriceForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    private Long id;

    @Schema(description = "企业专享优惠价")
    private BigDecimal firmPrice;

    @Schema(description = "分销商用户与上级服务费差值 元/度")
    private BigDecimal servicePrice;

    @Schema(description = "站点id")
    private Long stationId;

    @Schema(description = "时间段")
    @Size(max=40, message="时间段长度不能超过40个字符")
    private String time;

    @Schema(description = "分销商id")
    private Long firmId;

    @Schema(description = "创建时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "创建人")
    private Long createBy;

    @Schema(description = "修改时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @Schema(description = "修改人")
    private Long updateBy;

    @Schema(description = "逻辑删除(0-未删除 1-已删除)")
    @NotNull(message = "逻辑删除(0-未删除 1-已删除)不能为空")
    private Integer isDeleted;


}
