package cn.pluss.platform.wx;

import cn.pluss.platform.constants.Constant;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * TODO
 * 微信jump_wxa
 * @author crystal
 * @date 2022/4/11 17:41
 */
@Data
@NoArgsConstructor
public class WxJumpWxa {

    /**
     * 正式版
     */
    public static String ENV_VERSION_RELEASE = "release";

    /**
     * 体验版
     */
    public static String ENV_VERSION_TRIAL = "trial";

    /**
     * 开发版
     */
    public static String ENV_VERSION_DEVELOP = "develop";

    private String path;

    private String query;

    private String env_version;

    public WxJumpWxa(String path, String query, String env_version) {
        this.path = path;
        this.query = query;
        this.env_version = env_version;
    }

    public WxJumpWxa(String orderNumber,String env_version) {
        this.path = Constant.DEFAULT_APPLET_PATH;
        this.query = Constant.DEFAULT_APPLET_PARAM_NAME_PREFIX + orderNumber;
        this.env_version = env_version;
    }
}
