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.

47 lines
1.2 KiB

2 years ago
import { defHttp } from '@/utils/http/axios'
export interface AccountVO {
id?: number
name: string
}
2 years ago
// 创建公众号账号
export function createAccount(data) {
return defHttp.post({ url: '/mp/account/create', data })
2 years ago
}
// 更新公众号账号
export function updateAccount(data) {
2 years ago
return defHttp.put({ url: '/mp/account/update', data })
}
// 删除公众号账号
export function deleteAccount(id) {
return defHttp.delete({ url: `/mp/account/delete?id=${id}`, method: 'delete' })
2 years ago
}
// 获得公众号账号
export function getAccount(id) {
return defHttp.get({ url: `/mp/account/get?id=${id}` })
2 years ago
}
// 获得公众号账号分页
export function getAccountPage(params) {
2 years ago
return defHttp.get({ url: '/mp/account/page', params })
}
// 获取公众号账号精简信息列表
export function getSimpleAccounts() {
2 years ago
return defHttp.get({ url: '/mp/account/list-all-simple' })
}
// 生成公众号二维码
export function generateAccountQrCode(id) {
return defHttp.put({ url: `/mp/account/generate-qr-code?id=${id}` })
2 years ago
}
// 清空公众号 API 配额
export function clearAccountQuota(id) {
return defHttp.put({ url: `/mp/account/clear-quota?id=${id}` })
2 years ago
}