You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
|
|
import { defHttp } from '@/utils/http/axios'
|
|
|
|
|
|
|
|
// 获得公众号草稿分页
|
|
|
|
export function getDraftPage(params) {
|
|
|
|
return defHttp.get({ url: '/mp/draft/page', params })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 创建公众号草稿
|
|
|
|
export function createDraft(accountId, articles) {
|
|
|
|
return defHttp.post({
|
|
|
|
url: `/mp/draft/create?accountId=${accountId}`,
|
|
|
|
data: {
|
|
|
|
articles,
|
|
|
|
},
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// 更新公众号草稿
|
|
|
|
export function updateDraft(accountId, mediaId, articles) {
|
|
|
|
return defHttp.put({ url: `/mp/draft/update?accountId=${accountId}&mediaId=${mediaId}`, data: articles })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 删除公众号草稿
|
|
|
|
export function deleteDraft(accountId, mediaId) {
|
|
|
|
return defHttp.delete({ url: `/mp/draft/delete?accountId=${accountId}&mediaId=${mediaId}` })
|
|
|
|
}
|