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