增加微信通知功能

This commit is contained in:
hero920103 committed 2026-09-16 18:06:18 +08:00
1 parent b48688cbab
commit f386899625
23 files changed
+3539 -18

No files matched your search

+48
View File
@@ -0,0 +1,48 @@
import request from "@/utils/request";
/*************************************************
* 微信公众号绑定(租户端)
* 流程:生成二维码 → 微信扫码关注 → 公众号回复验证码 → 输入验证码完成绑定
*************************************************/
/** 发起绑定:生成带参数二维码 */
export function startWechatMpBind() {
return request({
url: "/backend/wechatMp/bind/start",
method: "post",
});
}
/** 查询绑定会话状态:0待扫码 1已扫码待核销 2已核销 3已过期 */
export function getWechatMpBindStatus(scene) {
return request({
url: "/backend/wechatMp/bind/status",
method: "get",
params: { scene },
});
}
/** 核销验证码完成绑定 */
export function confirmWechatMpBind(data) {
return request({
url: "/backend/wechatMp/bind/confirm",
method: "post",
data,
});
}
/** 当前租户用户的绑定信息 */
export function getMyWechatMpBinding() {
return request({
url: "/backend/wechatMp/my",
method: "get",
});
}
/** 解除当前用户的微信绑定 */
export function unbindWechatMp() {
return request({
url: "/backend/wechatMp/unbind",
method: "post",
});
}