package com.ruoyi.dpc.domain.dto;

import com.ruoyi.common.annotation.Excel;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;

import java.io.Serial;
import java.io.Serializable;

/**
 * 中介人员黑名单编辑 DTO
 *
 * @author ruoyi
 * @date 2026-01-27
 */
public class DpcIntermediaryBlacklistEditDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /** 中介ID */
    @NotNull(message = "中介ID不能为空")
    private Long intermediaryId;

    /** 姓名/机构名称 */
    @Excel(name = "姓名/机构名称")
    @NotBlank(message = "姓名/机构名称不能为空")
    @Size(min = 1, max = 100, message = "姓名/机构名称长度不能超过100个字符")
    private String name;

    /** 证件号 */
    @Excel(name = "证件号")
    @Size(max = 50, message = "证件号长度不能超过50个字符")
    private String certificateNo;

    /** 中介类型 */
    @Excel(name = "中介类型", readConverterExp = "1=个人,2=机构")
    @NotBlank(message = "中介类型不能为空")
    private String intermediaryType;

    /** 状态 */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    @NotBlank(message = "状态不能为空")
    private String status;

    /** 备注 */
    @Excel(name = "备注")
    @Size(max = 500, message = "备注长度不能超过500个字符")
    private String remark;

    public Long getIntermediaryId() {
        return intermediaryId;
    }

    public void setIntermediaryId(Long intermediaryId) {
        this.intermediaryId = intermediaryId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCertificateNo() {
        return certificateNo;
    }

    public void setCertificateNo(String certificateNo) {
        this.certificateNo = certificateNo;
    }

    public String getIntermediaryType() {
        return intermediaryType;
    }

    public void setIntermediaryType(String intermediaryType) {
        this.intermediaryType = intermediaryType;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
