package org.dromara.system.domain.bo;

import org.dromara.system.domain.SysUnitDomain;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 单位域名配置业务对象 sys_unit_domain
 *
 * @author LionLi
 * @date 2024-03-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysUnitDomain.class, reverseConvertGenerate = false)
public class SysUnitDomainBo extends BaseEntity {

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

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

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

    /**
     * 客服热线
     */
    @NotBlank(message = "客服热线不能为空", groups = { AddGroup.class, EditGroup.class })
    private String hotline;

    /**
     * 版权信息
     */
    @NotBlank(message = "版权信息不能为空", groups = { AddGroup.class, EditGroup.class })
    private String copyright;

    /**
     * 备案号
     */
    @NotBlank(message = "备案号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String recordNo;

    /**
     * 备案号链接地址
     */
    @NotBlank(message = "备案号链接地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String copyrightUrl;

    /**
     * PC登录页LOGO
     */
    @NotBlank(message = "PC登录页LOGO不能为空", groups = { AddGroup.class, EditGroup.class })
    private String loginPageLogo;

    /**
     * PC登录页广告图
     */
    @NotBlank(message = "PC登录页广告图不能为空", groups = { AddGroup.class, EditGroup.class })
    private String loginPageBanner;

    /**
     * PC主页LOGO
     */
    @NotBlank(message = "PC主页LOGO不能为空", groups = { AddGroup.class, EditGroup.class })
    private String homePageLogo;

    /**
     * 手机端LOGO
     */
    @NotBlank(message = "手机端LOGO不能为空", groups = { AddGroup.class, EditGroup.class })
    private String wapLogo;

    /**
     * 手机端广告图
     */
    @NotBlank(message = "手机端广告图不能为空", groups = { AddGroup.class, EditGroup.class })
    private String wapBanner;

    /**
     * 微信公众号站点名称
     */
    @NotBlank(message = "微信公众号站点名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String weChatPub;

    /**
     * 短信配置
     */
    @NotBlank(message = "短信配置不能为空", groups = { AddGroup.class, EditGroup.class })
    private String smsConfig;

    /**
     * PC登录协议
     */
    @NotBlank(message = "PC登录协议不能为空", groups = { AddGroup.class, EditGroup.class })
    private String pcLoginProtocol;

    /**
     * 手机端用户协议
     */
    @NotBlank(message = "手机端用户协议不能为空", groups = { AddGroup.class, EditGroup.class })
    private String mobileUserAgreement;

    /**
     * 私有协议
     */
    @NotBlank(message = "私有协议不能为空", groups = { AddGroup.class, EditGroup.class })
    private String privacyAgreement;

    /**
     * 状态（1：正常 2：禁用）
     */
    @NotNull(message = "状态（1：正常 2：禁用）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer status;

    /**
     * 角色id(5：平台 6：服务商 7：运营商 8：代理商 9：商户)
     */
    @NotNull(message = "角色id(5：平台 6：服务商 7：运营商 8：代理商 9：商户)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long busRole;

    /**
     * 主体id(结算中心id或运营商id或渠道商id或商户id)
     */
    @NotNull(message = "主体id(结算中心id或运营商id或渠道商id或商户id)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long busId;


    private String signConfig;
}
