package cn.axzo.msg.center.service.dto;

import cn.axzo.msg.center.service.enums.BizDetailJumpStrategyEnum;
import cn.axzo.msg.center.service.enums.BizDetailShowStrategyEnum;
import com.alibaba.fastjson.JSON;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.util.List;

/**
 * @author cold_blade
 * @date 2023/11/6
 * @version 1.0
 */
@Setter
@Getter
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class MessageDetailRouteStrategyDTO implements Serializable {

    private static final long serialVersionUID = -3496745332397525305L;

    /**
     * 展示策略
     */
    private BizDetailShowStrategyEnum showStrategy;
    /**
     * 业务详情跳转策略
     */
    private BizDetailJumpStrategyEnum jumpStrategy;
    /**
     * 路由终端列表，若当前按钮为ACTION，则只能配一个接口地址
     */
    private List<MessageRouterTerminalDTO> terminals;

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