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

import cn.axzo.msg.center.domain.persistence.BaseEntityExt;
import cn.axzo.msg.center.service.enums.BizDetailJumpStrategyEnum;
import cn.axzo.msg.center.service.enums.BizDetailShowStrategyEnum;
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/8
 * @version 1.0
 */
@Setter
@Getter
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("message_route_detail")
public class MessageRouteDetail extends BaseEntityExt<MessageRouteDetail> implements Serializable {

    private static final long serialVersionUID = -6868015511438657632L;

    /**
     * 显示名称
     */
    private String name;
    /**
     * 模板code
     */
    private String templateCode;
    /**
     * 业务详情展示策略
     */
    private BizDetailShowStrategyEnum showStrategy;
    /**
     * 业务详情跳转策略
     */
    private BizDetailJumpStrategyEnum jumpStrategy;

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