package jnpf.model.attendance.model;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class JumpUrl{
    /**
     * 跳转地址
     */
    private String url;
    /**
     * 跳转按钮名称
     */
    private String urlName;
    /**
     * 按钮颜色
     */
    private String color;

    public JumpUrl(String url, String urlName, String color, Integer type, String page, String param) {
        this.url = url;
        this.urlName = urlName;
        this.color = color;
        this.type = type;
        this.page = page;
        this.param = param;
    }

    /**
     * 小程序id
     */
    private String mpId;
    /**
     * 1点击事件 2调整 3原生
     */
    private Integer type;
    /**
     * 页面地址
     */
    private String page;
    /**
     * 地址参数
     */
    private String param;

    public JumpUrl(String url, String urlName, String color) {
        this.url = url;
        this.urlName = urlName;
        this.color = color;
    }

    public JumpUrl(String url, String urlName, String color, String mpId) {
        this.url = url;
        this.urlName = urlName;
        this.color = color;
        this.mpId = mpId;
    }
}
