All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.zopen.ato.properties.WechatMpProperties Maven / Gradle / Ivy

There is a newer version: 1.0.5
Show newest version
package com.zopen.ato.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "zopen.wechat.mp")
public class WechatMpProperties {

    // 是否开启公众号和小程序相关功能(开启后会定期自动获取 access_token)
    private Boolean open = Boolean.FALSE;

    private String appId;

    private String appSecret;

    // 本项目的域名地址(用于公众号菜单的回调地址前缀)
    private String domainUrl;

    @Override
    public String toString() {
        return "WechatMpProperties{" +
                "open=" + open +
                ", appId='" + appId + '\'' +
                ", appSecret='" + "******" + '\'' +
                ", domainUrl='" + domainUrl + '\'' +
                '}';
    }

    public Boolean getOpen() {
        return open;
    }

    public void setOpen(Boolean open) {
        this.open = open;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getAppSecret() {
        return appSecret;
    }

    public void setAppSecret(String appSecret) {
        this.appSecret = appSecret;
    }

    public String getDomainUrl() {
        return domainUrl;
    }

    public void setDomainUrl(String domainUrl) {
        this.domainUrl = domainUrl;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy