saas:支持社交应用的多租户配置(mp)

This commit is contained in:
YunaiV
2023-10-19 12:54:44 +08:00
parent d256275099
commit 6f757e5297
13 changed files with 216 additions and 46 deletions

View File

@ -1,5 +1,6 @@
package cn.iocoder.yudao.module.system.api.social;
import cn.iocoder.yudao.module.system.api.social.dto.SocialWxJsapiSignatureRespDTO;
import cn.iocoder.yudao.module.system.enums.social.SocialTypeEnum;
/**
@ -19,4 +20,13 @@ public interface SocialClientApi {
*/
String getAuthorizeUrl(Integer type, Integer userType, String redirectUri);
/**
* 创建微信 JS SDK 初始化所需的签名
*
* @param userType 用户类型
* @param url 访问的 URL 地址
* @return 签名
*/
SocialWxJsapiSignatureRespDTO createWxMpJsapiSignature(Integer userType, String url);
}

View File

@ -0,0 +1,34 @@
package cn.iocoder.yudao.module.system.api.social.dto;
import lombok.Data;
/**
* 微信公众号 JSAPI 签名 Response DTO
*
* @author 芋道源码
*/
@Data
public class SocialWxJsapiSignatureRespDTO {
/**
* 微信公众号的 appId
*/
private String appId;
/**
* 匿名串
*/
private String nonceStr;
/**
* 时间戳
*/
private Long timestamp;
/**
* URL
*/
private String url;
/**
* 签名
*/
private String signature;
}