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

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.tenant.mp.TenantEntity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 车辆管理协议表
 *
 * @author zhouhanwei
 * @date 2023-03-15 10:58:51
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "车辆管理协议表", description = "车辆管理协议表")
@TableName("pmg_bat_manage_pass_rule")
public class PmgBatManagePassRule extends TenantEntity {
	private static final long serialVersionUID = 1L;

	/**
	 * 园区Id
	 */
	@ApiModelProperty(name = "parkId", value = "园区Id")
	@NotNull(message = "请选择园区")
	private Long parkId;

	/**
	 * 停车场Id
	 */
	@ApiModelProperty(name = "parkingId", value = "停车场Id")
	private Long parkingId;

	/**
	 * 协议类型
	 */
	@ApiModelProperty(name = "protocolType", value = "协议类型（1：月卡协议，2：错时协议）")
	private String protocolType;
	/**
	 * 协议名称
	 */
	@ApiModelProperty(name = "protocolName", value = "协议名称")
	@NotBlank(message = "请输入协议名称")
	@Size(min = 2, max = 50, message = "请输入2~50个字的协议名称")
	private String protocolName;
	/**
	 * 协议内容
	 */
	@ApiModelProperty(name = "protocolContent", value = "协议内容")
	@NotBlank(message = "请输入协议内容")
	private String protocolContent;

	/**
	 * 备注
	 */
	@ApiModelProperty(name = "remark", value = "备注")
	private String remark;



}
