mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-23 21:36:37 +08:00
40 lines
938 B
JavaScript
40 lines
938 B
JavaScript
import request from '@/utils/request'
|
|
import { getCommunityId } from '@/api/community/communityApi'
|
|
|
|
// 获取微信关注用户列表
|
|
export function listWechatSubscribe(params) {
|
|
return new Promise((resolve, reject) => {
|
|
request({
|
|
url: '/wechat.listWechatSubscribe',
|
|
method: 'get',
|
|
params: {
|
|
...params,
|
|
communityId: getCommunityId()
|
|
}
|
|
}).then(response => {
|
|
const res = response.data
|
|
resolve(res)
|
|
}).catch(error => {
|
|
reject(error)
|
|
})
|
|
})
|
|
}
|
|
|
|
// 同步微信关注用户
|
|
export function synchronizeWechatSubscribe(data) {
|
|
return new Promise((resolve, reject) => {
|
|
request({
|
|
url: '/wechat.synchronizeWechatSubscribe',
|
|
method: 'post',
|
|
data: {
|
|
...data,
|
|
communityId: getCommunityId()
|
|
}
|
|
}).then(response => {
|
|
const res = response.data
|
|
resolve(res)
|
|
}).catch(error => {
|
|
reject(error)
|
|
})
|
|
})
|
|
} |