mp:实现 tag 模块的前端界面

This commit is contained in:
YunaiV
2023-01-08 12:12:31 +08:00
parent d1cc9dde0c
commit a341c44c4d
5 changed files with 148 additions and 233 deletions

View 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'
})
}

View File

@ -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'
})
}

View File

@ -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'
})
}