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

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

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)
@ApiModel(value = "车辆管理协议请求数据", description = "车辆管理协议请求数据")
public class PmgBatManagePassRuleEditReqDTO {

	/**
	 * 协议id
	 */
	@ApiModelProperty(name = "id", value = "协议id，新增不传，编辑必传")
	private Long id;

	/**
	 * 协议名称
	 */
	@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;

}
