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

import com.hotwj.platform.resourceManagement.company.domain.HotCompanyThirdPlatform;
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_company_third_platform
 *
 * @author shihongwei
 * @date 2025-12-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = HotCompanyThirdPlatform.class, reverseConvertGenerate = false)
public class HotCompanyThirdPlatformBo extends BaseEntity {

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

    /**
     * 公司ID
     */
    @NotNull(message = "公司ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long companyId;

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

    /**
     * 登录账号
     */
    @NotBlank(message = "登录账号不能为空", groups = {AddGroup.class, EditGroup.class})
    private String account;

    /**
     * 密码哈希/密文
     */
    @NotBlank(message = "密码哈希/密文不能为空", groups = {AddGroup.class, EditGroup.class})
    private String password;

    /**
     * 登录地址
     */
    @NotBlank(message = "登录地址不能为空", groups = {AddGroup.class, EditGroup.class})
    private String loginUrl;

    /**
     * 免登录配置(JSON)
     */
    private String ssoConfig;

    /**
     * 0=正常, 1=已删除
     */
    @NotNull(message = "0=正常, 1=已删除不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long isDeleted;


}
