mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-13 02:25:06 +08:00
mp:实现 tag 模块的前端界面
This commit is contained in:
52
yudao-ui-admin/src/api/mp/tag.js
Normal file
52
yudao-ui-admin/src/api/mp/tag.js
Normal file
@ -0,0 +1,52 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 创建公众号标签
|
||||
export function createTag(data) {
|
||||
return request({
|
||||
url: '/mp/tag/create',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 更新公众号标签
|
||||
export function updateTag(data) {
|
||||
return request({
|
||||
url: '/mp/tag/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除公众号标签
|
||||
export function deleteTag(id) {
|
||||
return request({
|
||||
url: '/mp/tag/delete?id=' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得公众号标签
|
||||
export function getTag(id) {
|
||||
return request({
|
||||
url: '/mp/tag/get?id=' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得公众号标签分页
|
||||
export function getTagPage(query) {
|
||||
return request({
|
||||
url: '/mp/tag/page',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 同步公众号标签
|
||||
export function syncTag(accountId) {
|
||||
return request({
|
||||
url: '/mp/tag/sync?accountId=' + accountId,
|
||||
method: 'post'
|
||||
})
|
||||
}
|
@ -1,54 +0,0 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 创建粉丝标签关联
|
||||
export function createWxAccountFansTag(data) {
|
||||
return request({
|
||||
url: '/wechatMp/wx-account-fans-tag/create',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 更新粉丝标签关联
|
||||
export function updateWxAccountFansTag(data) {
|
||||
return request({
|
||||
url: '/wechatMp/wx-account-fans-tag/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除粉丝标签关联
|
||||
export function deleteWxAccountFansTag(id) {
|
||||
return request({
|
||||
url: '/wechatMp/wx-account-fans-tag/delete?id=' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得粉丝标签关联
|
||||
export function getWxAccountFansTag(id) {
|
||||
return request({
|
||||
url: '/wechatMp/wx-account-fans-tag/get?id=' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得粉丝标签关联分页
|
||||
export function getWxAccountFansTagPage(query) {
|
||||
return request({
|
||||
url: '/wechatMp/wx-account-fans-tag/page',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 导出粉丝标签关联 Excel
|
||||
export function exportWxAccountFansTagExcel(query) {
|
||||
return request({
|
||||
url: '/wechatMp/wx-account-fans-tag/export-excel',
|
||||
method: 'get',
|
||||
params: query,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
@ -1,54 +0,0 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 创建粉丝标签
|
||||
export function createWxFansTag(data) {
|
||||
return request({
|
||||
url: '/wechatMp/fans-tag/create',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 更新粉丝标签
|
||||
export function updateWxFansTag(data) {
|
||||
return request({
|
||||
url: '/wechatMp/fans-tag/update',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除粉丝标签
|
||||
export function deleteWxFansTag(id) {
|
||||
return request({
|
||||
url: '/wechatMp/fans-tag/delete?id=' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得粉丝标签
|
||||
export function getWxFansTag(id) {
|
||||
return request({
|
||||
url: '/wechatMp/fans-tag/get?id=' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得粉丝标签分页
|
||||
export function getWxFansTagList(query) {
|
||||
return request({
|
||||
url: '/wechatMp/fans-tag/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 导出粉丝标签 Excel
|
||||
export function exportWxFansTagExcel(query) {
|
||||
return request({
|
||||
url: '/wechatMp/fans-tag/export-excel',
|
||||
method: 'get',
|
||||
params: query,
|
||||
responseType: 'blob'
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user