package com.xinelu.manage.domain.nursestationpersoncheck;

import com.xinelu.common.annotation.Excel;
import com.xinelu.common.core.domain.BaseDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 护理人员信息修改审核信息（存放移动端护理员修改信息，PC端审核使用）对象 nurse_station_person_check
 *
 * @author xinyilu
 * @date 2023-03-29
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "护理人员信息修改审核信息（存放移动端护理员修改信息，PC端审核使用）对象", description = "nurse_station_person_check")
public class NurseStationPersonCheck extends BaseDomain implements Serializable {
    private static final long serialVersionUID = 4672458806845282098L;
    /**
     * 主键id
     */
    private Long id;

    /**
     * 护理人员表id
     */
    @ApiModelProperty(value = "护理人员表id")
    @Excel(name = "护理人员表id")
    private Long nurseStationPersonId;

    /**
     * 证书名称
     */
    @ApiModelProperty(value = "证书名称")
    @Excel(name = "证书名称")
    @Length(max = 100, message = "证书名称不能超过100个字符")
    private String certificateName;

    /**
     * 证书编号
     */
    @ApiModelProperty(value = "证书编号")
    @Excel(name = "证书编号")
    private String certificateCode;

    /**
     * 证书存放路径
     */
    @ApiModelProperty(value = "证书存放路径")
    @Excel(name = "证书存放路径")
    private String certificateUrl;

    /**
     * 显示顺序
     */
    @Size(min = 0, max = 5, message = "排序不能超过5个字符")
    private Integer sort;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("nurseStationPersonId", getNurseStationPersonId())
                .append("certificateName", getCertificateName())
                .append("certificateCode", getCertificateCode())
                .append("certificateUrl", getCertificateUrl())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}