package com.yuchen.saas.parking.charge.api.entity.charge;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.nest.springwrap.core.mp.base.BaseEntity;

import javax.validation.constraints.*;

/**
 * @Author 蔡文强
 * @Date 2023/4/13 15:56
 * @Description 充电价格类型表
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("spc_station_charge_price")
@ApiModel(value="SpcStationChargePrice对象", description="充电价格类型表")
public class SpcStationChargePrice extends BaseEntity {
    /**
     * 充电站ID
     */
    @ApiModelProperty(name = "stationId", value = "价格模板ID")
    @NotNull(message = "价格模板ID不能为空")
    private Long stationId;

    @ApiModelProperty(name = "chargeTemplateId", value = "价格模板ID")
    @NotNull(message = "价格模板ID不能为空")
    private Long chargeTemplateId;
    /**
     * 价格类型(尖、峰、平、谷)
     */
    @ApiModelProperty(name = "priceType", value = "价格类型(1:尖 2:峰 3:平 4:谷)")
    @NotNull(message = "价格类型不能为空")
    @Min(value = 1, message = "priceType值要大于等于1")
    @Max(value = 4, message = "priceType值要小于等于4")
    private Integer priceType;
    /**
     * 电费-单位分
     */
    @ApiModelProperty(name = "electricFee", value = "电费-单位分")
    @NotNull(message = "电费不能为空")
    @Min(value = 1, message = "electricFee值要大于等于1")
    private Integer electricFee;
    /**
     * 服务费-单位分
     */
    @ApiModelProperty(name = "serviceFee", value = "服务费-单位分")
    @NotNull(message = "服务费不能为空")
    @Min(value = 1, message = "serviceFee值要大于等于1")
    private Integer serviceFee;

}
