接入服务号模板推送通知

This commit is contained in:
stu2not
2026-06-22 14:34:20 +08:00
parent 8aeb813a68
commit 0fb4ebee8a
16 changed files with 1025 additions and 3 deletions

View File

@@ -0,0 +1,21 @@
import { request } from './api'
export interface WechatMpBindStartResponse {
url: string
}
export interface WechatMpBindStatus {
bound: boolean
subscribed: boolean
updated_at?: string | null
}
export async function getWechatMpBindStatus(): Promise<WechatMpBindStatus> {
return request<WechatMpBindStatus>('/banban/wechat-mp/bind/status')
}
export async function startWechatMpBind(): Promise<WechatMpBindStartResponse> {
return request<WechatMpBindStartResponse>('/banban/wechat-mp/bind/start', {
method: 'POST',
})
}