mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-14 11:05:06 +08:00
微信公众号对接
This commit is contained in:
54
yudao-ui-admin/src/api/wechatMp/wxAccount.js
Normal file
54
yudao-ui-admin/src/api/wechatMp/wxAccount.js
Normal file
@ -0,0 +1,54 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 创建公众号账户
|
||||
export function createWxAccount(data) {
|
||||
return request({
|
||||
url: '/wechatMp/wx-account/create',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 更新公众号账户
|
||||
export function updateWxAccount(data) {
|
||||
return request({
|
||||
url: '/wechatMp/wx-account/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除公众号账户
|
||||
export function deleteWxAccount(id) {
|
||||
return request({
|
||||
url: '/wechatMp/wx-account/delete?id=' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得公众号账户
|
||||
export function getWxAccount(id) {
|
||||
return request({
|
||||
url: '/wechatMp/wx-account/get?id=' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得公众号账户分页
|
||||
export function getWxAccountPage(query) {
|
||||
return request({
|
||||
url: '/wechatMp/wx-account/page',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 导出公众号账户 Excel
|
||||
export function exportWxAccountExcel(query) {
|
||||
return request({
|
||||
url: '/wechatMp/wx-account/export-excel',
|
||||
method: 'get',
|
||||
params: query,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
54
yudao-ui-admin/src/api/wechatMp/wxAccountFans.js
Normal file
54
yudao-ui-admin/src/api/wechatMp/wxAccountFans.js
Normal file
@ -0,0 +1,54 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 创建微信公众号粉丝
|
||||
export function createWxAccountFans(data) {
|
||||
return request({
|
||||
url: '/wechatMp/wx-account-fans/create',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 更新微信公众号粉丝
|
||||
export function updateWxAccountFans(data) {
|
||||
return request({
|
||||
url: '/wechatMp/wx-account-fans/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除微信公众号粉丝
|
||||
export function deleteWxAccountFans(id) {
|
||||
return request({
|
||||
url: '/wechatMp/wx-account-fans/delete?id=' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得微信公众号粉丝
|
||||
export function getWxAccountFans(id) {
|
||||
return request({
|
||||
url: '/wechatMp/wx-account-fans/get?id=' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得微信公众号粉丝分页
|
||||
export function getWxAccountFansPage(query) {
|
||||
return request({
|
||||
url: '/wechatMp/wx-account-fans/page',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 导出微信公众号粉丝 Excel
|
||||
export function exportWxAccountFansExcel(query) {
|
||||
return request({
|
||||
url: '/wechatMp/wx-account-fans/export-excel',
|
||||
method: 'get',
|
||||
params: query,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user