From 5df6addb788ba4569ca2d0e793695238ba94fdb7 Mon Sep 17 00:00:00 2001 From: xingyuv Date: Thu, 9 Feb 2023 14:47:50 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=BB=9F=E4=B8=80api=E9=A3=8E=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-ui-admin-vue3/src/api/mp/autoReply/index.ts | 10 +++++----- yudao-ui-admin-vue3/src/api/mp/draft/index.ts | 8 ++++---- .../src/api/mp/freePublish/index.ts | 6 +++--- yudao-ui-admin-vue3/src/api/mp/material/index.ts | 4 ++-- yudao-ui-admin-vue3/src/api/mp/menu/index.ts | 6 +++--- yudao-ui-admin-vue3/src/api/mp/message/index.ts | 4 ++-- yudao-ui-admin-vue3/src/api/mp/mpuser/index.ts | 8 ++++---- yudao-ui-admin-vue3/src/api/mp/statistics/index.ts | 8 ++++---- yudao-ui-admin-vue3/src/api/mp/tag/index.ts | 14 +++++++------- 9 files changed, 34 insertions(+), 34 deletions(-) diff --git a/yudao-ui-admin-vue3/src/api/mp/autoReply/index.ts b/yudao-ui-admin-vue3/src/api/mp/autoReply/index.ts index 21391fadb..5045e6d5e 100644 --- a/yudao-ui-admin-vue3/src/api/mp/autoReply/index.ts +++ b/yudao-ui-admin-vue3/src/api/mp/autoReply/index.ts @@ -1,7 +1,7 @@ import request from '@/config/axios' // 创建公众号的自动回复 -export function createAutoReply(data) { +export const createAutoReply = (data) => { return request.post({ url: '/mp/auto-reply/create', data: data @@ -9,7 +9,7 @@ export function createAutoReply(data) { } // 更新公众号的自动回复 -export function updateAutoReply(data) { +export const updateAutoReply = (data) => { return request.put({ url: '/mp/auto-reply/update', data: data @@ -17,21 +17,21 @@ export function updateAutoReply(data) { } // 删除公众号的自动回复 -export function deleteAutoReply(id) { +export const deleteAutoReply = (id) => { return request.delete({ url: '/mp/auto-reply/delete?id=' + id }) } // 获得公众号的自动回复 -export function getAutoReply(id) { +export const getAutoReply = (id) => { return request.get({ url: '/mp/auto-reply/get?id=' + id }) } // 获得公众号的自动回复分页 -export function getAutoReplyPage(query) { +export const getAutoReplyPage = (query) => { return request.get({ url: '/mp/auto-reply/page', params: query diff --git a/yudao-ui-admin-vue3/src/api/mp/draft/index.ts b/yudao-ui-admin-vue3/src/api/mp/draft/index.ts index 9c77148b3..ce6a44315 100644 --- a/yudao-ui-admin-vue3/src/api/mp/draft/index.ts +++ b/yudao-ui-admin-vue3/src/api/mp/draft/index.ts @@ -1,7 +1,7 @@ import request from '@/config/axios' // 获得公众号草稿分页 -export function getDraftPage(query) { +export const getDraftPage = (query) => { return request.get({ url: '/mp/draft/page', params: query @@ -9,7 +9,7 @@ export function getDraftPage(query) { } // 创建公众号草稿 -export function createDraft(accountId, articles) { +export const createDraft = (accountId, articles) => { return request.post({ url: '/mp/draft/create?accountId=' + accountId, data: { @@ -19,7 +19,7 @@ export function createDraft(accountId, articles) { } // 更新公众号草稿 -export function updateDraft(accountId, mediaId, articles) { +export const updateDraft = (accountId, mediaId, articles) => { return request.put({ url: '/mp/draft/update?accountId=' + accountId + '&mediaId=' + mediaId, method: 'put', @@ -28,7 +28,7 @@ export function updateDraft(accountId, mediaId, articles) { } // 删除公众号草稿 -export function deleteDraft(accountId, mediaId) { +export const deleteDraft = (accountId, mediaId) => { return request.delete({ url: '/mp/draft/delete?accountId=' + accountId + '&mediaId=' + mediaId }) diff --git a/yudao-ui-admin-vue3/src/api/mp/freePublish/index.ts b/yudao-ui-admin-vue3/src/api/mp/freePublish/index.ts index 365ec4058..beef02627 100644 --- a/yudao-ui-admin-vue3/src/api/mp/freePublish/index.ts +++ b/yudao-ui-admin-vue3/src/api/mp/freePublish/index.ts @@ -1,7 +1,7 @@ import request from '@/config/axios' // 获得公众号素材分页 -export function getFreePublishPage(query) { +export const getFreePublishPage = (query) => { return request.get({ url: '/mp/free-publish/page', params: query @@ -9,14 +9,14 @@ export function getFreePublishPage(query) { } // 删除公众号素材 -export function deleteFreePublish(accountId, articleId) { +export const deleteFreePublish = (accountId, articleId) => { return request.delete({ url: '/mp/free-publish/delete?accountId=' + accountId + '&articleId=' + articleId }) } // 发布公众号素材 -export function submitFreePublish(accountId, mediaId) { +export const submitFreePublish = (accountId, mediaId) => { return request.post({ url: '/mp/free-publish/submit?accountId=' + accountId + '&mediaId=' + mediaId }) diff --git a/yudao-ui-admin-vue3/src/api/mp/material/index.ts b/yudao-ui-admin-vue3/src/api/mp/material/index.ts index ccad2f36f..fcc37abe0 100644 --- a/yudao-ui-admin-vue3/src/api/mp/material/index.ts +++ b/yudao-ui-admin-vue3/src/api/mp/material/index.ts @@ -1,7 +1,7 @@ import request from '@/config/axios' // 获得公众号素材分页 -export function getMaterialPage(query) { +export const getMaterialPage = (query) => { return request.get({ url: '/mp/material/page', params: query @@ -9,7 +9,7 @@ export function getMaterialPage(query) { } // 删除公众号永久素材 -export function deletePermanentMaterial(id) { +export const deletePermanentMaterial = (id) => { return request.delete({ url: '/mp/material/delete-permanent?id=' + id }) diff --git a/yudao-ui-admin-vue3/src/api/mp/menu/index.ts b/yudao-ui-admin-vue3/src/api/mp/menu/index.ts index 02fa26a68..cc78647c2 100644 --- a/yudao-ui-admin-vue3/src/api/mp/menu/index.ts +++ b/yudao-ui-admin-vue3/src/api/mp/menu/index.ts @@ -1,14 +1,14 @@ import request from '@/config/axios' // 获得公众号菜单列表 -export function getMenuList(accountId) { +export const getMenuList = (accountId) => { return request.get({ url: '/mp/menu/list?accountId=' + accountId }) } // 保存公众号菜单 -export function saveMenu(accountId, menus) { +export const saveMenu = (accountId, menus) => { return request.post({ url: '/mp/menu/save', data: { @@ -19,7 +19,7 @@ export function saveMenu(accountId, menus) { } // 删除公众号菜单 -export function deleteMenu(accountId) { +export const deleteMenu = (accountId) => { return request.delete({ url: '/mp/menu/delete?accountId=' + accountId }) diff --git a/yudao-ui-admin-vue3/src/api/mp/message/index.ts b/yudao-ui-admin-vue3/src/api/mp/message/index.ts index 9f757d73a..8b7d3cbdd 100644 --- a/yudao-ui-admin-vue3/src/api/mp/message/index.ts +++ b/yudao-ui-admin-vue3/src/api/mp/message/index.ts @@ -1,7 +1,7 @@ import request from '@/config/axios' // 获得公众号消息分页 -export function getMessagePage(query) { +export const getMessagePage = (query) => { return request.get({ url: '/mp/message/page', params: query @@ -9,7 +9,7 @@ export function getMessagePage(query) { } // 给粉丝发送消息 -export function sendMessage(data) { +export const sendMessage = (data) => { return request.post({ url: '/mp/message/send', data: data diff --git a/yudao-ui-admin-vue3/src/api/mp/mpuser/index.ts b/yudao-ui-admin-vue3/src/api/mp/mpuser/index.ts index 1d64c8967..d954e9eb1 100644 --- a/yudao-ui-admin-vue3/src/api/mp/mpuser/index.ts +++ b/yudao-ui-admin-vue3/src/api/mp/mpuser/index.ts @@ -1,7 +1,7 @@ import request from '@/config/axios' // 更新公众号粉丝 -export function updateUser(data) { +export const updateUser = (data) => { return request.put({ url: '/mp/user/update', data: data @@ -9,14 +9,14 @@ export function updateUser(data) { } // 获得公众号粉丝 -export function getUser(id) { +export const getUser = (id) => { return request.get({ url: '/mp/user/get?id=' + id }) } // 获得公众号粉丝分页 -export function getUserPage(query) { +export const getUserPage = (query) => { return request.get({ url: '/mp/user/page', params: query @@ -24,7 +24,7 @@ export function getUserPage(query) { } // 同步公众号粉丝 -export function syncUser(accountId) { +export const syncUser = (accountId) => { return request.post({ url: '/mp/tag/sync?accountId=' + accountId }) diff --git a/yudao-ui-admin-vue3/src/api/mp/statistics/index.ts b/yudao-ui-admin-vue3/src/api/mp/statistics/index.ts index 42655caa2..72cae601f 100644 --- a/yudao-ui-admin-vue3/src/api/mp/statistics/index.ts +++ b/yudao-ui-admin-vue3/src/api/mp/statistics/index.ts @@ -1,7 +1,7 @@ import request from '@/config/axios' // 获取消息发送概况数据 -export function getUpstreamMessage(query) { +export const getUpstreamMessage = (query) => { return request.get({ url: '/mp/statistics/upstream-message', params: query @@ -9,7 +9,7 @@ export function getUpstreamMessage(query) { } // 用户增减数据 -export function getUserSummary(query) { +export const getUserSummary = (query) => { return request.get({ url: '/mp/statistics/user-summary', params: query @@ -17,7 +17,7 @@ export function getUserSummary(query) { } // 获得用户累计数据 -export function getUserCumulate(query) { +export const getUserCumulate = (query) => { return request.get({ url: '/mp/statistics/user-cumulate', params: query @@ -25,7 +25,7 @@ export function getUserCumulate(query) { } // 获得接口分析数据 -export function getInterfaceSummary(query) { +export const getInterfaceSummary = (query) => { return request.get({ url: '/mp/statistics/interface-summary', params: query diff --git a/yudao-ui-admin-vue3/src/api/mp/tag/index.ts b/yudao-ui-admin-vue3/src/api/mp/tag/index.ts index db04e0680..e681e2e18 100644 --- a/yudao-ui-admin-vue3/src/api/mp/tag/index.ts +++ b/yudao-ui-admin-vue3/src/api/mp/tag/index.ts @@ -1,7 +1,7 @@ import request from '@/config/axios' // 创建公众号标签 -export function createTag(data) { +export const createTag = (data) => { return request.post({ url: '/mp/tag/create', data: data @@ -9,7 +9,7 @@ export function createTag(data) { } // 更新公众号标签 -export function updateTag(data) { +export const updateTag = (data) => { return request.put({ url: '/mp/tag/update', data: data @@ -17,21 +17,21 @@ export function updateTag(data) { } // 删除公众号标签 -export function deleteTag(id) { +export const deleteTag = (id) => { return request.delete({ url: '/mp/tag/delete?id=' + id }) } // 获得公众号标签 -export function getTag(id) { +export const getTag = (id) => { return request.get({ url: '/mp/tag/get?id=' + id }) } // 获得公众号标签分页 -export function getTagPage(query) { +export const getTagPage = (query) => { return request.get({ url: '/mp/tag/page', params: query @@ -39,14 +39,14 @@ export function getTagPage(query) { } // 获取公众号标签精简信息列表 -export function getSimpleTags() { +export const getSimpleTags = () => { return request.get({ url: '/mp/tag/list-all-simple' }) } // 同步公众号标签 -export function syncTag(accountId) { +export const syncTag = (accountId) => { return request.post({ url: '/mp/tag/sync?accountId=' + accountId })