package cn.axzo.msg.center.domain.entity;

import cn.axzo.msg.center.domain.persistence.BaseEntityExt;
import cn.axzo.msg.center.service.enums.TerminalTypeEnum;
import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

/**
 * 消息路由配置
 *
 * @author cold_blade
 * @date 2023/11/7
 * @version 1.0
 */
@Setter
@Getter
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("message_router_config")
public class MessageRouterConfig extends BaseEntityExt<MessageRouterConfig> implements Serializable {

    private static final long serialVersionUID = 2472826034240755399L;

    /**
     * 路由编码
     */
    private String routerCode;
    /**
     * 路由的系统类型
     */
    private TerminalTypeEnum terminalType;
    /**
     * 路由地址
     */
    private String url;

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
