xlb-main-login
Version:
``` yarn install ```
213 lines (187 loc) • 5.25 kB
JavaScript
// 短信营销
import { wei_url } from '@/api/config'
import { axios } from '@/utils/request'
const baseUrl = '/demo-wechat-work'
//************** 签名管理 ******************/
//签名管理 - 列表
export function autographList(params) {
return axios({
url: wei_url + baseUrl + '/v1/wechat/work/short/message/signature',
method: 'get',
params,
})
}
// 签名管理 - 列表 - 删除
export function autographDel(id) {
return axios({
url: wei_url + baseUrl + '/v1/wechat/work/short/message/signature/' + id,
method: 'delete',
})
}
//签名管理 - 新增
export function autographAdd(data) {
return axios({
headers: { 'Content-Type': 'application/json;charset=UTF-8' },
url: wei_url + baseUrl + '/v1/wechat/work/short/message/signature',
method: 'post',
data,
})
}
//签名管理 - 编辑
export function autographEdit(data) {
return axios({
headers: { 'Content-Type': 'application/json;charset=UTF-8' },
url: wei_url + baseUrl + '/v1/wechat/work/short/message/signature',
method: 'put',
data,
})
}
// 签名管理 - 回显
export function autographDetail(id) {
return axios({
url: wei_url + baseUrl + '/v1/wechat/work/short/message/signature/' + id,
method: 'get',
})
}
// 下载委托书模板
export function autographExport() {
return axios({
url: wei_url + baseUrl + '/v1/wechat/work/short/message/signature',
method: 'get',
})
}
//************** 模板管理 ******************/
//模板管理 - 列表
export function templateList(params) {
return axios({
url: wei_url + baseUrl + '/v1/wechat/work/short/message/template',
method: 'get',
params,
})
}
// 模板管理 - 列表 - 删除
export function templateDel(id) {
return axios({
url: wei_url + baseUrl + '/v1/wechat/work/short/message/template/' + id,
method: 'delete',
})
}
//模板管理 - 新增
export function templateAdd(data) {
return axios({
headers: { 'Content-Type': 'application/json;charset=UTF-8' },
url: wei_url + baseUrl + '/v1/wechat/work/short/message/template',
method: 'post',
data,
})
}
//模板管理 - 编辑
export function templateEdit(data) {
return axios({
headers: { 'Content-Type': 'application/json;charset=UTF-8' },
url: wei_url + baseUrl + '/v1/wechat/work/short/message/template',
method: 'put',
data,
})
}
// 模板管理 - 回显
export function templateDetail(id) {
return axios({
url: wei_url + baseUrl + '/v1/wechat/work/short/message/template/' + id,
method: 'get',
})
}
// 模板管理 - 下载
export function templateExport() {
return axios({
url: wei_url + baseUrl + '/v1/wechat/work/short/message/signature',
method: 'get',
})
}
//************** 群发短信 ******************/
//群发短信 - 列表
export function massList(params) {
return axios({
url: wei_url + baseUrl + '/v1/wechat/work/short/message/send',
method: 'get',
params,
})
}
//群发短信 - 短信发送数量
export function sendMassage(params) {
return axios({
url: wei_url + baseUrl + '/v1/wechat/work/product/num',
method: 'get',
params,
})
}
// 群发短信 - 列表 - 删除
export function massDel(id) {
return axios({
url: wei_url + baseUrl + '/v1/wechat/work/short/message/send/' + id,
method: 'delete',
})
}
// 群发短信 - 发送
export function massSend(id) {
return axios({
url: wei_url + baseUrl + '/v1/wechat/work/short/message/send/' + id,
method: 'post',
})
}
// 群发短信 - 撤销
export function revokeDel(id) {
return axios({
url: wei_url + baseUrl + '/v1/wechat/work/short/message/send/cancel/' + id,
method: 'get',
})
}
//群发短信 - 新增
export function massAdd(data) {
return axios({
headers: { 'Content-Type': 'application/json;charset=UTF-8' },
url: wei_url + baseUrl + '/v1/wechat/work/short/message/send',
method: 'post',
data,
})
}
//群发短信 - 编辑
export function massEdit(data) {
return axios({
headers: { 'Content-Type': 'application/json;charset=UTF-8' },
url: wei_url + baseUrl + '/v1/wechat/work/short/message/send',
method: 'put',
data,
})
}
// 群发短信 - 回显
export function massDetail(id) {
return axios({
url: wei_url + baseUrl + '/v1/wechat/work/short/message/send/' + id,
method: 'get',
})
}
//************** 群发短信 - 详情页 ******************/
//群发短信 - 详情 - 顶部四个
export function massDetailTop(id) {
return axios({
url: wei_url + baseUrl + '/v1/wechat/work/short/message/send/result/' + id,
method: 'get',
})
}
//群发短信 - 详情 - 列表
export function massDetailList(params) {
return axios({
url: wei_url + baseUrl + '/v1/wechat/work/short/message/send/phone',
method: 'get',
params,
})
}
//群发短信 - 详情 - 导出
export function massDetailExport(params) {
return axios({
url: wei_url + baseUrl + '/v1/wechat/work/short/message/send/phone/export',
method: 'get',
params,
})
}