package com.zd.bottle.domain;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.zd.common.core.annotation.Excel;
import com.zd.common.core.web.domain.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

/**
 * <p>
 * RFID标签管理
 * </p>
 *
 * @author hanson
 * @since 2022-09-08
 */
@Getter
@Setter
@Accessors(chain = true)
@ApiModel(value = "RfidTag对象", description = "RFID标签管理")
@EqualsAndHashCode(callSuper = true)
@JsonIgnoreProperties(ignoreUnknown = true)
public class RfidTag extends BaseBean {

    @Excel(name = "授权码")
    @ApiModelProperty("授权码")
    private String authCode;

    @Excel(name = "标签内码")
    @Length(message = "标签内码长度不能超过50")
    @ApiModelProperty("标签内码")
    private String tagCode;

    @Excel(name = "是否绑定 1绑定  0未绑定")
    @ApiModelProperty("是否绑定 1绑定  0未绑定")
    private Short isBind;

    @ApiModelProperty(value = "开始时间")
    private transient String startTime;

    @ApiModelProperty(value = "结束时间")
    private transient String endTime;
}
