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.
26 lines
738 B
26 lines
738 B
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}` }) |
|
}
|
|
|