xkrs_ms/stdiet-ui/src/api/custom/wxAccount.js
2021-08-20 15:57:53 +08:00

63 lines
1.1 KiB
JavaScript

import request from '@/utils/request'
// 查询微信账号列表
export function listWxAccount(query) {
return request({
url: '/custom/wxAccount/list',
method: 'get',
params: query
})
}
// 查询微信账号详细
export function getWxAccount(id) {
return request({
url: '/custom/wxAccount/' + id,
method: 'get'
})
}
// 新增微信账号
export function addWxAccount(data) {
return request({
url: '/custom/wxAccount',
method: 'post',
data: data
})
}
// 修改微信账号
export function updateWxAccount(data) {
return request({
url: '/custom/wxAccount',
method: 'put',
data: data
})
}
// 删除微信账号
export function delWxAccount(id) {
return request({
url: '/custom/wxAccount/' + id,
method: 'delete'
})
}
// 导出微信账号
export function exportWxAccount(query) {
return request({
url: '/custom/wxAccount/export',
method: 'get',
params: query
})
}
// 查询所有微信账号
export function getAllWxAccount() {
return request({
url: '/custom/wxAccount/getAllWxAccount',
method: 'get'
})
}