package com.hotwj.platform.resourceManagement.govEnterpriseUnit.domain.bo;

import com.hotwj.platform.resourceManagement.govEnterpriseUnit.domain.HotGovEnterpriseUnit;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;

/**
 * 政企单位业务对象 hot_gov_enterprise_unit
 *
 * @author shihongwei
 * @date 2026-01-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = HotGovEnterpriseUnit.class, reverseConvertGenerate = false)
public class HotGovEnterpriseUnitBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 单位类型（1=政企 2=代理商）
     */
    @NotNull(message = "单位类型（1=政企 2=代理商）不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long unitType;

    /**
     * 上级单位ID
     */
    private Long parentUnitId;

    /**
     * 单位名称
     */
    @NotBlank(message = "单位名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String unitName;

    /**
     * 省编码
     */
    @NotBlank(message = "省编码不能为空", groups = {AddGroup.class, EditGroup.class})
    private String provinceCode;

    /**
     * 市编码
     */
    @NotBlank(message = "市编码不能为空", groups = {AddGroup.class, EditGroup.class})
    private String cityCode;

    /**
     * 区/县编码
     */
    @NotBlank(message = "区/县编码不能为空", groups = {AddGroup.class, EditGroup.class})
    private String districtCode;

    /**
     * 联系人
     */
    @NotBlank(message = "联系人不能为空", groups = {AddGroup.class, EditGroup.class})
    private String contactName;

    /**
     * 联系人电话
     */
    @NotBlank(message = "联系人电话不能为空", groups = {AddGroup.class, EditGroup.class})
    private String contactPhone;

    /**
     * 备用联系人
     */
    private String backupContactName;

    /**
     * 备用联系人电话
     */
    private String backupContactPhone;

    /**
     * 办公地址
     */
    private String officeAddress;

    /**
     * 备注
     */
    private String remark;

    /**
     * 0=正常, 1=已删除
     */
    private Long isDeleted;

    private Long createBy;

}
