You've already forked FrameTour-BE
微信支付、回调、订单查询;
微信用户登录、用户信息查询、修改用户信息、同意用户协议; 文件OSS上传、删除接口;
This commit is contained in:
74
src/main/java/com/ycwl/basic/config/WechatConfig.java
Normal file
74
src/main/java/com/ycwl/basic/config/WechatConfig.java
Normal file
@ -0,0 +1,74 @@
|
||||
package com.ycwl.basic.config;
|
||||
|
||||
import lombok.Data;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* 微信小程序配置
|
||||
*
|
||||
* @author songmingsong
|
||||
**/
|
||||
@Data
|
||||
@Component
|
||||
@ConfigurationProperties(prefix = "wx")
|
||||
public class WechatConfig {
|
||||
|
||||
/**
|
||||
* 公众号的appId
|
||||
*/
|
||||
private String appId;
|
||||
|
||||
/**
|
||||
* 公众号的密钥
|
||||
*/
|
||||
private String appSecret;
|
||||
|
||||
/**
|
||||
* 公众号推送模板
|
||||
*/
|
||||
@Value("${wx.push.templateId}")
|
||||
private String templateId;
|
||||
|
||||
/**
|
||||
* 小程序的AppId
|
||||
*/
|
||||
private String miniProgramAppId;
|
||||
|
||||
/**
|
||||
* 小程序的secret
|
||||
*/
|
||||
private String miniProgramSecret;
|
||||
|
||||
/**
|
||||
* 申请openid授权
|
||||
*/
|
||||
private String grandType;
|
||||
|
||||
/**
|
||||
* 商户号
|
||||
*/
|
||||
private String mchId;
|
||||
|
||||
/**
|
||||
* 商户证书序列号
|
||||
*/
|
||||
private String mchSerialNo;
|
||||
|
||||
/**
|
||||
* 回调接口地址
|
||||
*/
|
||||
private String notifyUrl;
|
||||
|
||||
/**
|
||||
* 商户API私钥路径
|
||||
*/
|
||||
private String keyPath;
|
||||
|
||||
/**
|
||||
* 商户APIV3密钥
|
||||
*/
|
||||
private String apiV3;
|
||||
|
||||
}
|
Reference in New Issue
Block a user