Files
ipms-sjy/yudao-ui-admin-vue3/src/api/mp/freePublish/index.ts

24 lines
602 B
TypeScript
Raw Normal View History

2023-02-09 10:43:29 +08:00
import request from '@/config/axios'
// 获得公众号素材分页
2023-02-09 14:47:50 +08:00
export const getFreePublishPage = (query) => {
2023-02-09 10:43:29 +08:00
return request.get({
url: '/mp/free-publish/page',
params: query
})
}
// 删除公众号素材
2023-02-09 14:47:50 +08:00
export const deleteFreePublish = (accountId, articleId) => {
2023-02-09 10:43:29 +08:00
return request.delete({
url: '/mp/free-publish/delete?accountId=' + accountId + '&articleId=' + articleId
})
}
// 发布公众号素材
2023-02-09 14:47:50 +08:00
export const submitFreePublish = (accountId, mediaId) => {
2023-02-09 10:43:29 +08:00
return request.post({
url: '/mp/free-publish/submit?accountId=' + accountId + '&mediaId=' + mediaId
})
}