package com.huimv.employment.service.config;

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

/**
 * 微信小程序配置，绑定 {@code fe.wechat.miniapp.*}。
 */
@ConfigurationProperties(prefix = "fe.wechat.miniapp")
public class WeChatMiniAppProperties {

    /** Mock 模式：不调用微信 API，适合本地开发 */
    private boolean mockEnabled = true;

    private String appId = "";

    private String appSecret = "";

    /** Mock 模式下固定 openid */
    private String mockOpenid = "mock_wx_openid_dev";

    public boolean isMockEnabled() {
        return mockEnabled;
    }

    public void setMockEnabled(boolean mockEnabled) {
        this.mockEnabled = mockEnabled;
    }

    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 getMockOpenid() {
        return mockOpenid;
    }

    public void setMockOpenid(String mockOpenid) {
        this.mockOpenid = mockOpenid;
    }
}
