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.
|
|
|
import { defHttp } from '@/utils/http/axios'
|
|
|
|
|
|
|
|
// 获得公众号菜单列表
|
|
|
|
export function getMenuList(accountId) {
|
|
|
|
return defHttp.get({ url: '/mp/menu/list?accountId=' + accountId })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 保存公众号菜单
|
|
|
|
export function saveMenu(accountId, menus) {
|
|
|
|
return defHttp.post({
|
|
|
|
url: '/mp/menu/save',
|
|
|
|
data: {
|
|
|
|
accountId,
|
|
|
|
menus
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// 删除公众号菜单
|
|
|
|
export function deleteMenu(accountId) {
|
|
|
|
return defHttp.delete({ url: '/mp/menu/delete?accountId=' + accountId })
|
|
|
|
}
|